Skip to content

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

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

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

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-pages-artifact@v3
id: deployment
with:
path: public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment