Skip to content

docs: yamlファイル修正時のactions動作テスト #1

docs: yamlファイル修正時のactions動作テスト

docs: yamlファイル修正時のactions動作テスト #1

Workflow file for this run

name: API Document Hosting
on:
push:
paths:
- 'reference/bookmap.yaml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
- name: Convert YML to HTML
run: |
npm install -g redoc-cli
redoc-cli bundle reference/bookmap.yaml -o ./docs/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs