Skip to content

Merge pull request #26 from takumi-pro/feature/event-detail-api #14

Merge pull request #26 from takumi-pro/feature/event-detail-api

Merge pull request #26 from takumi-pro/feature/event-detail-api #14

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/scp-action@v0.1.4
# 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"