File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ pages : write
14
+ id-token : write
11
15
12
16
steps :
13
17
- name : Checkout repository
@@ -22,14 +26,25 @@ jobs:
22
26
run : npm install -g @redocly/cli
23
27
24
28
- name : Generate HTML from OpenAPI JSON
25
- run : redocly build-docs ./api/latest.json -o ./docs/index.html
29
+ run : |
30
+ redocly build-docs ./api/latest.json -o ./docs/index.html
31
+ touch ./docs/.nojekyll
26
32
27
33
- name : Upload HTML Artifacts
28
34
uses : actions/upload-pages-artifact@v1
29
35
with :
30
36
path : ./docs
31
37
38
+ deploy :
39
+ runs-on : ubuntu-latest
40
+ needs : build
41
+ permissions :
42
+ contents : read
43
+ pages : write
44
+ id-token : write
45
+
46
+ steps :
32
47
- name : Deploy to GitHub Pages
33
48
uses : actions/deploy-pages@v1
34
49
with :
35
- token : ${{ secrets.GITHUB_TOKEN }}
50
+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments