Skip to content

Commit ed9d42d

Browse files
authored
Update docs.yml
1 parent da4df63 commit ed9d42d

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/docs.yml

+21-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8-
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
@@ -38,9 +43,19 @@ jobs:
3843
run: |
3944
npm install
4045
npm run build
41-
42-
- name: Deploy to GitHub Pages
43-
uses: actions/deploy-pages@v4.0.5
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
4449
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
artifact_name: build/api-docs
50+
path: ./api-doc/build/api-docs
51+
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
needs: build
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)