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 8285939
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 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 @@ -23,7 +23,10 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist/

0 comments on commit 8285939

Please sign in to comment.