Skip to content

Commit 8732e93

Browse files
committed
ci: update workflow
1 parent 79349b7 commit 8732e93

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: .github/workflows/generate-docs.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
1115

1216
steps:
1317
- name: Checkout repository
@@ -22,14 +26,25 @@ jobs:
2226
run: npm install -g @redocly/cli
2327

2428
- 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
2632
2733
- name: Upload HTML Artifacts
2834
uses: actions/upload-pages-artifact@v1
2935
with:
3036
path: ./docs
3137

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:
3247
- name: Deploy to GitHub Pages
3348
uses: actions/deploy-pages@v1
3449
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
50+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)