Skip to content

Commit 0531ba3

Browse files
fix: doc versioning and auto deployment after release (#1370)
1 parent ff7fcd3 commit 0531ba3

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ jobs:
2828
with:
2929
name: documentation
3030
path: documentation.tar
31+
retention-days: 1
3132

32-
build: # builds the distribution and then the documentation
33+
build_and_deploy: # builds the distribution and then the documentation
3334
needs: get_history
3435
runs-on: ubuntu-latest
36+
permissions:
37+
contents: write
3538
steps:
3639
- name: Checkout src
3740
uses: actions/checkout@v5
41+
with:
42+
token: ${{ github.token }}
3843

3944
- name: Download the existing documents artifact
4045
uses: actions/download-artifact@v6
@@ -57,5 +62,9 @@ jobs:
5762
- name: Run cleanup and manage document versions
5863
run: node scripts/manage-doc-versions.js
5964

60-
- name: Deploy to github pages using gh-pages
61-
run: npx gh-pages -d docs
65+
- name: Deploy to GitHub Pages
66+
uses: peaceiris/actions-gh-pages@v4
67+
with:
68+
github_token: ${{ github.token }}
69+
publish_dir: ./docs
70+
keep_files: false

0 commit comments

Comments
 (0)