fix: swago

This commit is contained in:
naiba committed 2024-11-29 21:55:29 +08:00
1 parent 037a131b66
commit b78c92b2df
3 files changed
+7 -1

No files matched your search

+3 -1
View File
@@ -70,7 +70,9 @@ jobs:
- name: generate swagger docs
run: |
go install github.com/swaggo/swag/cmd/swag@latest
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --exclude ./cmd/dashboard/user-dist --exclude ./cmd/dashboard/admin-dist --parseGoList=false
touch ./cmd/dashboard/user-dist/a
touch ./cmd/dashboard/admin-dist/a
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
- name: Build with tag
if: contains(github.ref, 'refs/tags/')
+2
View File
@@ -32,6 +32,8 @@ jobs:
- name: generate swagger docs
run: |
go install github.com/swaggo/swag/cmd/swag@latest
touch ./cmd/dashboard/user-dist/a
touch ./cmd/dashboard/admin-dist/a
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
- name: Unit test