Skip to content

Commit bcf9e3a

Browse files
committed
ci: update gh-pages workflow to use standard measns of uploading docs
1 parent 64f4e0c commit bcf9e3a

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/release-please.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,26 @@ jobs:
5353
runs-on: ubuntu-latest
5454
permissions:
5555
contents: write
56+
pages: write
57+
id-token: write
58+
59+
environment:
60+
name: github-pages
61+
url: ${{ steps.deployment.outputs.page_url }}
5662
steps:
5763
- uses: actions/checkout@v4
58-
- uses: ./.github/actions/setup-node-env
59-
- run: npm ci
60-
- run: npm run doc
61-
- name: Deploy to GitHub Pages
62-
uses: peaceiris/actions-gh-pages@v4
64+
65+
- name: Setup Node Environment
66+
run: npm ci
67+
68+
- name: Generate Documentation
69+
run: npm run doc
70+
71+
- name: Upload documentation artifact
72+
uses: actions/upload-pages-artifact@v3
6373
with:
64-
github_token: ${{ secrets.GITHUB_TOKEN }}
65-
publish_dir: ./doc
74+
path: ./doc
75+
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)