Skip to content

Commit

Permalink
deploy OpenAPI spec to pages (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ authored Oct 13, 2024
1 parent 3004dfa commit 460b8fe
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,21 @@ jobs:
spec_artifact_path: docs/
spec_filename: swagger.yaml

# publish_documentation:
# runs-on: ubuntu-latest
# if: "${{ github.ref == 'refs/heads/main' }}"
# needs:
# - build_documentation
# # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
# permissions:
# pages: write
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# steps:
# - name: Deploy to GitHub Pages
# if: "${{ github.ref == 'refs/heads/main' }}"
# id: deployment
# uses: actions/deploy-pages@v4
# with:
# artifact_name: rendered-api-docu
deploy_openapi_spec:
if: "${{ github.ref == 'refs/heads/main' }}"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- render_openapi_spec
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: rendered-api-docu
uses: actions/deploy-pages@v4

build_and_push_image:
needs: [golang_test, golang_quality, render_openapi_spec]
Expand Down

0 comments on commit 460b8fe

Please sign in to comment.