From 3b8d8bd7a720c753ae6d3c8e310ebb31be2790a9 Mon Sep 17 00:00:00 2001 From: lafay <2021211506@stu.hit.edu.cn> Date: Sat, 10 Jan 2026 04:57:56 +0800 Subject: [PATCH] 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. --- .gitea/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ed90ec2..b904e2f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -26,6 +26,9 @@ jobs: - name: Download dependencies run: go mod download + - name: Generate Swagger docs + run: swag init -g cmd/server/main.go -o docs + - name: Build env: GOOS: linux