Skip to content

Commit

Permalink
fix: add stage to deploy gh-pages directly to pnpm_build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jul 27, 2024
1 parent 91c51a5 commit b87087c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pnpm_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,19 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ${{ inputs.output_path }}

deploy:
needs: build
if: ${{ inputs.output_path && inputs.github_pages }}
# 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 origin
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b87087c

Please sign in to comment.