Skip to content

πŸ’š Fix deploy to Bump SH #1

πŸ’š Fix deploy to Bump SH

πŸ’š Fix deploy to Bump SH #1

name: Check & deploy API documentation
on:
push:
pull_request:
jobs:
deploy-doc:
if: ${{ github.event_name == 'push' }}
name: Deploy API documentation on Bump.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deploy API documentation
uses: bump-sh/github-action@v1
with:
doc: usprestaurantsapi
token: ${{ secrets.DOC_TOKEN }}
file: doc/api-documentation.yml
api-diff:
if: ${{ github.event_name == 'pull_request' }}
name: Check API diff on Bump.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Comment pull request with API diff
uses: bump-sh/github-action@v1
with:
doc: usprestaurantsapi
token: ${{ secrets.DOC_TOKEN }}
file: openapi/openapi.yaml
command: diff
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}