Update API docs to specify how to set content encoding (#33) #24
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 | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
- run: npm i -g @apidevtools/swagger-cli@4 | |
- name: Prepare deploy directory | |
run: | | |
mkdir ./deploy | |
cp -r dist ./deploy | |
cp -r assets ./deploy | |
cp -r index.html ./deploy | |
- name: Bundle spec | |
run: "swagger-cli bundle ./relay-oapi.yaml -r -t yaml -o ./deploy/relay-oapi.yaml" | |
- name: Publish to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./deploy | |
publish_branch: gh-pages |