diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6235b0..91e5b94 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: NodeJS with Gulp +name: NodeJS with Parcel on: push: @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 @@ -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/