Skip to content

Commit

Permalink
ci: improve docs workflow (#696)
Browse files Browse the repository at this point in the history
* ci: improve docs workflow

* fix: permissions
  • Loading branch information
DorianMazur authored Nov 21, 2024
1 parent 53f914e commit 0bbc1bd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build:
name: Build and Publish Docusaurus
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -24,8 +27,10 @@ jobs:
- name: Build website
working-directory: ./website
run: yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
path: website/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 0bbc1bd

Please sign in to comment.