diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index f00d787b5..3f459f915 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -27,13 +27,14 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.21 - cache: true + cache: true - name: install swag cli run: go install github.com/swaggo/swag/cmd/swag@latest - name: swag init - run: ./scripts/swagger.sh + run: ./scripts/gen_swagger_json.sh + deploy: if: ${{ always() }} needs: build diff --git a/scripts/gen_swagger_json.sh b/scripts/gen_swagger_json.sh new file mode 100755 index 000000000..b1387d1e4 --- /dev/null +++ b/scripts/gen_swagger_json.sh @@ -0,0 +1,3 @@ +#/bin/sh + +swag init -g prover/server/api.go --parseDependency diff --git a/scripts/swagger.sh b/scripts/swagger.sh deleted file mode 100755 index 747ed505d..000000000 --- a/scripts/swagger.sh +++ /dev/null @@ -1,3 +0,0 @@ -#/bin/sh - -swag init -g prover/server/api.go --parseDependency \ No newline at end of file