Skip to content

Commit

Permalink
tweaked workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
weijiekoh committed Aug 3, 2023
1 parent 1beb000 commit a09bf75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NodeJS with Gulp
name: NodeJS with Parcel

on:
push:
Expand All @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,8 +22,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: npm install
run: cd web && npm install

- name: Build
run: |
cd web
npm install
npx parcel index.html
run: cd web && npx parcel build --public-url ./ index.html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist/
3 changes: 3 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
},
"author": "Koh Wei Jie",
"license": "MIT",
"alias": {
"events": false
},
"dependencies": {
"circomlibjs": "^0.1.7",
"ffjavascript": "^0.2.45"
Expand Down

0 comments on commit a09bf75

Please sign in to comment.