chore(deps): bump graphql from 16.6.0 to 16.8.1 #56
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 API docs | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
generate-spec: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install | |
- name: Generate file | |
run: yarn swagger | |
- name: Upload file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: spec-file | |
path: swagger-output.json | |
deploy: | |
needs: generate-spec | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download file | |
uses: actions/download-artifact@v3 | |
with: | |
name: spec-file | |
- name: Generate Swagger UI | |
uses: Legion2/swagger-ui-action@v1 | |
with: | |
output: swagger-ui | |
spec-file: swagger-output.json | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: swagger-ui | |
cname: api-docs.lipoic.org |