diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7626486..6777269 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f000e2..68e3733 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/script/bootstrap.sh b/script/bootstrap.sh index 60f8029..4f60128 100755 --- a/script/bootstrap.sh +++ b/script/bootstrap.sh @@ -1,3 +1,5 @@ +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 --requiredByDefault protoc --go-grpc_out="require_unimplemented_servers=false:." --go_out="." proto/*.proto rm -rf ../agent/proto