Skip to content

Commit b1aaf28

Browse files
refactor: streamline GitHub Actions workflow for documentation deployment
1 parent 5fc1cd3 commit b1aaf28

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,13 @@ jobs:
3333
build_and_deploy: # builds the distribution and then the documentation
3434
needs: get_history
3535
runs-on: ubuntu-latest
36-
environment:
37-
name: release
38-
url: ${{ steps.deployment.outputs.page_url }}
3936
permissions:
4037
contents: write
41-
pages: write
42-
id-token: write
4338
steps:
4439
- name: Checkout src
4540
uses: actions/checkout@v5
4641
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
42+
token: ${{ github.token }}
4843

4944
- name: Download the existing documents artifact
5045
uses: actions/download-artifact@v6
@@ -67,14 +62,9 @@ jobs:
6762
- name: Run cleanup and manage document versions
6863
run: node scripts/manage-doc-versions.js
6964

70-
- name: Setup Pages
71-
uses: actions/configure-pages@v4
72-
73-
- name: Upload pages artifact
74-
uses: actions/upload-pages-artifact@v3
75-
with:
76-
path: docs
77-
7865
- name: Deploy to GitHub Pages
79-
id: deployment
80-
uses: actions/deploy-pages@v4
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)