Compare commits

...

1 Commits

Author SHA1 Message Date
datadunia aa620dec6a fix(ci): restore swagger docs step + fix release needs (remove build-docs dependency)
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 6m18s
CI / build-device-agent (push) Failing after 2m21s
CI / release (push) Has been skipped
CI / build-dashboard (push) Successful in 1m59s
CI / build-docs (push) Has been skipped
2026-06-18 09:44:29 +07:00
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -35,9 +35,18 @@ jobs:
- uses: actions/cache@v3
id: cache-build
with:
path: apps/server-core/bin
path: |
apps/server-core/bin
apps/server-core/docs
key: build-server-core-${{ steps.hash-src.outputs.hash }}
- name: Generate Swagger docs
if: steps.cache-build.outputs.cache-hit != 'true'
working-directory: apps/server-core
run: |
go install github.com/swaggo/swag/cmd/swag@v1.16.6
swag init -g main.go --parseDependency --parseInternal
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
working-directory: apps/server-core
+1 -1
View File
@@ -110,7 +110,7 @@ jobs:
# ====================================================================
release:
if: "!contains(gitea.ref_name, 'test') && !failure()"
needs: [build-server-core, build-device-agent, build-dashboard, build-docs]
needs: [build-server-core, build-device-agent, build-dashboard]
uses: ./.gitea/workflows/release_call.yaml
with:
prerelease: ${{ contains(gitea.ref_name, 'dev') }}