Skip to content

Commit

Permalink
use separate deploy step for gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Jan 12, 2024
1 parent d50d77c commit ea26aaa
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy Pages
deploy:
needs: build

# 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
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 comments on commit ea26aaa

Please sign in to comment.