From e91fba82a8fa4073e09c8ec587504ad0ba0be8e2 Mon Sep 17 00:00:00 2001 From: song Date: Sun, 4 Jan 2026 09:47:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20simple=20release=20=E4=B9=9F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 4 ---- .goreleaser.simple.yaml | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cdb5812c..696adbf0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,6 @@ jobs: build-frontend: runs-on: ubuntu-latest - if: ${{ github.event.inputs.simple_release != 'true' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -77,8 +76,6 @@ jobs: release: needs: [update-version, build-frontend] - # 等待 build-frontend 完成(除非是 simple_release 则跳过检查) - if: ${{ always() && needs.update-version.result == 'success' && (github.event.inputs.simple_release == 'true' || needs.build-frontend.result == 'success') }} runs-on: ubuntu-latest steps: - name: Checkout @@ -94,7 +91,6 @@ jobs: path: backend/cmd/server/ - name: Download frontend artifact - if: ${{ github.event.inputs.simple_release != 'true' }} uses: actions/download-artifact@v4 with: name: frontend-dist diff --git a/.goreleaser.simple.yaml b/.goreleaser.simple.yaml index 1846d386..2155ed9d 100644 --- a/.goreleaser.simple.yaml +++ b/.goreleaser.simple.yaml @@ -12,9 +12,8 @@ builds: dir: backend main: ./cmd/server binary: sub2api - # 不嵌入前端,使用独立部署模式 - # flags: - # - -tags=embed + flags: + - -tags=embed env: - CGO_ENABLED=0 goos: