ci: genrate api documentation #7
Workflow file for this run
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
name: generate-api-documentation | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
make: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Sage | |
uses: einride/sage/actions/setup@master | |
with: | |
go-version: 1.19 | |
- name: Setup Node | |
# Latest version `v3.7.0` contains a bug, see the following issue: | |
# https://github.com/actions/setup-node/issues/801 | |
uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: 18 | |
#registry-url: https://registry.npmjs.org | |
#cache: "yarn" | |
#cache-dependency-path: frontend/yarn.lock | |
- name: Generate PDF's | |
run: make generate-api-doc | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: API Auth PDF | |
path: api_auth.pdf | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: API Service PDF | |
path: api_service.pdf |