Skip to content

Commit

Permalink
chore: Update deploy workflow permissions and add artifact upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtrindade committed Jul 22, 2024
1 parent 8541730 commit dc4d945
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
Expand All @@ -28,7 +29,13 @@ jobs:
- name: Build MkDocs site
run: mkdocs build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'

- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
id: deployment
uses: actions/deploy-pages@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dc4d945

Please sign in to comment.