From bc480b951b4790f8ccb4b06c149accefab5679c0 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 18 Oct 2023 14:32:34 +0800 Subject: [PATCH] feat: update script name --- .github/workflows/swagger.yml | 5 +++-- scripts/gen_swagger_json.sh | 3 +++ scripts/swagger.sh | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100755 scripts/gen_swagger_json.sh delete mode 100755 scripts/swagger.sh 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