Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Build & deploy to github pages
  • Loading branch information
sandykadam committed Nov 10, 2023
1 parent ccc5dd9 commit 455d15b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 455d15b

Please sign in to comment.