Skip to content

Commit

Permalink
hopefully fix pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brechtpd committed May 13, 2024
1 parent 3f6c2a2 commit c368e22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/openapi-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ concurrency:
jobs:
deploy-docs:
name: Generate OpenAPI docs
runs-on: ubuntu-latest
environment:
name: github-pages
name: ${{ (github.ref == 'refs/heads/main') && 'github-pages' || 'test-environment' }}
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand All @@ -36,16 +36,16 @@ jobs:
run: ./script/generate-docs.sh

- name: Setup Pages
if: github.event_name == 'push'
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3

- name: Upload artifact
if: github.event_name == 'push'
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
path: './openapi'
path: './openapi'

- name: Deploy to GitHub Pages
if: github.event_name == 'push'
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit c368e22

Please sign in to comment.