feat: add revalidatePath #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy API Docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
publish-openapi-doc: | |
runs-on: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.11.0 # pnpm version | |
run_install: false # 依存関係のインストールをスキップ | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install | |
run: pnpm install | |
- name: Generate API Docs | |
run: pnpm api:gen | |
- name: Push gh-pages branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./openapi # デプロイするindex.htmlがあるディレクりを指定 | |
# keep_files: true # git pushの度に一旦全てのファイルが削除される挙動を抑制できる |