Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jooyoungseo committed Aug 22, 2024
1 parent 79349b7 commit 8732e93
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write

steps:
- name: Checkout repository
Expand All @@ -22,14 +26,25 @@ jobs:
run: npm install -g @redocly/cli

- name: Generate HTML from OpenAPI JSON
run: redocly build-docs ./api/latest.json -o ./docs/index.html
run: |
redocly build-docs ./api/latest.json -o ./docs/index.html
touch ./docs/.nojekyll
- name: Upload HTML Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: ./docs

deploy:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
pages: write
id-token: write

steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8732e93

Please sign in to comment.