Skip to content

Commit

Permalink
Make Swagger work again
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Sep 30, 2023
1 parent dd9064d commit 84f947c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
if: steps.build_frontend.outputs.status == 'success'
id: build_docs
run: |
go get -u github.com/swaggo/swag/cmd/swag
sudo curl -L -o /tmp/swag.tar.gz https://github.com/swaggo/swag/releases/download/v1.16.2/swag_1.16.2_Linux_x86_64.tar.gz
sudo tar xvf /tmp/swag.tar.gz -C /usr/local/bin
cd docs
make
echo "::set-output name=status::success"
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

build:
ifeq ($(shell command -v swag 2> /dev/null),)
$(error "Swagger is not installed. Run go get -u github.com/swaggo/swag/cmd/swag")
$(error "Swagger is not installed. Install swag from github.com/swaggo/swag and try again.")
endif
@swag init -g ../cmd/main.go -d ../app,../server,../publisher -o ./

0 comments on commit 84f947c

Please sign in to comment.