Skip to content

feat: APIドキュメントをGitHub Pagesにデプロイ #51

feat: APIドキュメントをGitHub Pagesにデプロイ

feat: APIドキュメントをGitHub Pagesにデプロイ #51

Workflow file for this run

name: Generate API documentation
on:
push:
branches:
- main
- feature/gen-api-doc
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx -y @redocly/cli build-docs schema.yml -o public/redocly-static.html
- uses: actions/upload-artifact@v3
with:
name: redocly-static.html
path: public
- uses: actions/upload-pages-artifact@v1
with:
path: public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v1
id: deployment