Skip to content

Commit

Permalink
In the beginning there was darkness, and swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
olieidel committed Sep 21, 2024
0 parents commit 2c1dd46
Show file tree
Hide file tree
Showing 3 changed files with 1,257 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/generate-swagger-html.yml
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# EUDAMED API Reference (unofficial)
Loading

0 comments on commit 2c1dd46

Please sign in to comment.