Skip to content

Commit

Permalink
Add dependency and grant permissions for Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
yacosta738 committed Dec 20, 2023
1 parent 5bebe97 commit 3815c47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
env:
FORMSPREE: ${{ secrets.FORMSPREE }}

# Deploy job
deploy:
# Add a dependency to the build job
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
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down

0 comments on commit 3815c47

Please sign in to comment.