Skip to content

Commit

Permalink
💚 Fix deploy to Bump SH
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColman committed Nov 19, 2023
1 parent 94cc369 commit 6ed0185
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/check-deploy-api-doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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: openapi/openapi.yaml
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}}


18 changes: 0 additions & 18 deletions .github/workflows/deploy-api-doc.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/validate-api-doc.yaml

This file was deleted.

0 comments on commit 6ed0185

Please sign in to comment.