From 455d15bfc039bbdd2f1192af457af29e6e0a53b3 Mon Sep 17 00:00:00 2001 From: Sandeep Kadam Date: Fri, 10 Nov 2023 12:02:53 +0000 Subject: [PATCH] Create build.yml Build & deploy to github pages --- .github/workflows/static.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..7f103db --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,36 @@ +name: Deploy and build content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: install and test + run: | + npm install -g yarn + npm install -g gulp + cd tools/vf-core + yarn install + gulp vf-build # to do: we should make this run by `npm test` + env: + CI: true + - name: Deploy to GH Pages 🚀 + uses: actions/deploy-pages@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: public