Skip to content

Commit

Permalink
Use different upload-artifact action
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbro committed Jun 30, 2024
1 parent c3fc77e commit 9aff3e4
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,14 @@ jobs:
- run: npm run build --if-present
- run: npm test

- uses: actions/upload-artifact@v4
- uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: dist/

# see https://github.com/actions/deploy-pages
# and https://github.com/sitek94/vite-deploy-demo

deploy_github_page:
if: github.ref == 'refs/heads/main'
needs: build-and-test

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
Expand All @@ -58,6 +50,3 @@ jobs:

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 9aff3e4

Please sign in to comment.