-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the beginning there was darkness, and swagger
- Loading branch information
0 parents
commit 2c1dd46
Showing
3 changed files
with
1,257 additions
and
0 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,36 @@ | ||
name: Generate Swagger HTML | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
generate-swagger-html: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install -g @apidevtools/swagger-cli | ||
npm install -g redoc-cli | ||
- name: Bundle OpenAPI file | ||
run: swagger-cli bundle eudamed_api_openapi3_1.yaml --outfile swagger.yaml --type yaml | ||
|
||
- name: Generate HTML | ||
run: redoc-cli bundle swagger.yaml --output index.html | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: . | ||
publish_branch: gh-pages | ||
keep_files: true |
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 @@ | ||
# EUDAMED API Reference (unofficial) |
Oops, something went wrong.