Skip to content

Commit

Permalink
Merge branch 'main' of github.com:geode-sdk/server
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jan 9, 2024
2 parents 1f9c761 + 59b84eb commit 56c0802
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Swagger API Docs

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
output: swagger-ui
spec-file: spec.yml

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: swagger-ui

deploy:
needs: build
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 56c0802

Please sign in to comment.