fix swag location

This commit is contained in:
Cubicroot 2021-10-01 18:24:31 +02:00
parent 26187a8adf
commit 62af2424fa
2 changed files with 2 additions and 4 deletions

View file

@ -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