chore: Add Swagger documentation generation to build workflow
- Included a step to generate Swagger documentation during the build process. - This addition enhances API documentation and ensures it is up-to-date with the codebase.
This commit is contained in:
@@ -26,6 +26,9 @@ jobs:
|
|||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
|
- name: Generate Swagger docs
|
||||||
|
run: swag init -g cmd/server/main.go -o docs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
|
|||||||
Reference in New Issue
Block a user