-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build a redoc api description page
- Loading branch information
Showing
2 changed files
with
110 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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@v2 | ||
|
||
# use the public name of the action | ||
- name: redoc-cli test | ||
uses: seeebiii/redoc-cli-github-action@v8 | ||
with: | ||
args: 'bundle https://bitbucket.org/medicalinformatics/mainzelliste/raw/development/resources/Mainzelliste.OpenApi.Spec.yaml -o mainzelliste-api.yml' | ||
- name: check result | ||
run: | | ||
ls -al | ||
test -f mainzelliste-api.html || (echo "Missing mainzelliste-api.html from previous step." && exit 1) | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
# 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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.