Commit ed9d42d 1 parent da4df63 commit ed9d42d Copy full SHA for ed9d42d
File tree 1 file changed +21
-6
lines changed
1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' v*'
7
7
workflow_dispatch :
8
-
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
9
14
jobs :
10
15
build :
11
16
runs-on : ubuntu-latest
38
43
run : |
39
44
npm install
40
45
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
44
49
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
You can’t perform that action at this time.
0 commit comments