Skip to content

Commit

Permalink
deploy openapi after building?
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Sep 12, 2024
1 parent fe14591 commit 4de2877
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ jobs:
with:
commit_message: "chore: update openapi file"

build-new-openapi:
needs: [update-openapi-file]
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

steps:
# run swagger-ui.yaml
- uses: ./swagger-ui.yaml


build-docker:
runs-on: ubuntu-latest
needs: [build, update-openapi-file]
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/swagger-ui.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Swagger UI deployment
on:
push:
branches: [ main ]
workflow_dispatch: {}

permissions:
Expand Down Expand Up @@ -39,4 +37,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit 4de2877

Please sign in to comment.