Merge pull request #26 from takumi-pro/feature/event-detail-api #14
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: 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" |