Skip to content

Commit

Permalink
upload artifact after npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Man Parvesh Singh Randhawa committed Oct 3, 2024
1 parent 89c9a10 commit 1f14043
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ jobs:
- name: Build Project
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
name: github-pages
retention-days: 1

# Deploy job
deploy:
# Add a dependency to the build job
needs: build

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

Expand Down

0 comments on commit 1f14043

Please sign in to comment.