Skip to content

Merge pull request #24 from takumi-pro/feature/search-event #12

Merge pull request #24 from takumi-pro/feature/search-event

Merge pull request #24 from takumi-pro/feature/search-event #12

Workflow file for this run

name: API Document Hosting
on:
push:
branches: [main]
# paths:
# - "reference/devlocator.yaml"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Convert YML to HTML
run: |
npm install -g redoc-cli
redoc-cli bundle reference/devlocator.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
# - name: Deploy to Hosting PC
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# password: ${{ secrets.PASSWORD }}
# port: ${{ secrets.PORT }}
# key: ${{ secrets.KEY }}
# passphrase: ${{ secrets.PASSPHRASE }}
# source: "index.html"
# target: "/var/www/html/api"