Skip to content

chore: rework actions a little #215

chore: rework actions a little

chore: rework actions a little #215

name: Deploy Swagger API Docs
on:
push:
branches:
- main
jobs:
build-api-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
version: "5.11.0"
output: swagger-ui
spec-file: ./openapi.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: swagger-ui
deploy-api-docs:
needs: build

Check failure on line 29 in .github/workflows/deploy-api-docs.yml

View workflow run for this annotation

GitHub Actions / Deploy Swagger API Docs

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-api-docs.yml (Line: 29, Col: 12): Job 'deploy-api-docs' depends on unknown job '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