mirror of
https://github.com/pushbits/server.git
synced 2025-06-18 18:42:02 +02:00
fix swag location
This commit is contained in:
parent
26187a8adf
commit
62af2424fa
2 changed files with 2 additions and 4 deletions
4
.github/workflows/documentation.yml
vendored
4
.github/workflows/documentation.yml
vendored
|
@ -20,12 +20,10 @@ jobs:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- name: Install swag
|
- name: Install swag
|
||||||
run: go install github.com/swaggo/swag/cmd/swag
|
run: go install github.com/swaggo/swag/cmd/swag
|
||||||
- name: debug
|
|
||||||
run: cd / && find * | grep swag
|
|
||||||
- name: Install redoc
|
- name: Install redoc
|
||||||
run: sudo apt install npm && sudo npm install redoc
|
run: sudo apt install npm && sudo npm install redoc
|
||||||
- name: Build the api documentation
|
- name: Build the api documentation
|
||||||
run: swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
run: /home/runner/go/bin/swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
||||||
- name: Build static html
|
- name: Build static html
|
||||||
run: npx redoc-cli bundle docs/swagger.yaml --output index.html
|
run: npx redoc-cli bundle docs/swagger.yaml --output index.html
|
||||||
# TODO copy index.html to new repo
|
# TODO copy index.html to new repo
|
Loading…
Add table
Add a link
Reference in a new issue