diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c9bc023..6d21a63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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] diff --git a/.github/workflows/swagger-ui.yaml b/.github/workflows/swagger-ui.yaml index 372ecaf..35ab4d7 100644 --- a/.github/workflows/swagger-ui.yaml +++ b/.github/workflows/swagger-ui.yaml @@ -1,7 +1,5 @@ name: Swagger UI deployment on: - push: - branches: [ main ] workflow_dispatch: {} permissions: @@ -39,4 +37,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2