Skip to content

Commit

Permalink
Create ci-deploy-openapi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dgame authored Jun 11, 2024
1 parent 8d6233b commit 099c1de
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-deploy-openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build & Deploy API Spec.

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
paths:
- .github/workflows/ci-deploy-openapi.yml
- 'api/spec/openapi.yml'
- 'api/spec/index.html'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'api/spec'

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 099c1de

Please sign in to comment.