Skip to content

ci: build a redoc api description page #4

ci: build a redoc api description page

ci: build a redoc api description page #4

Workflow file for this run

name: test-deploy
# Run on each push to master
on:
push:
branches: [ "develop" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build_redoc:
runs-on: ubuntu-latest
name: Build redoc
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build doc
run: npx @redocly/cli build-docs https://bitbucket.org/medicalinformatics/mainzelliste/raw/development/resources/Mainzelliste.OpenApi.Spec.yaml -o openapi/mainzelliste-api.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./openapi
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build_redoc
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4