Commit e91fba82 authored by song's avatar song
Browse files

fix(ci): simple release 也构建前端

parent 84d6480b
......@@ -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
......
......@@ -12,9 +12,8 @@ builds:
dir: backend
main: ./cmd/server
binary: sub2api
# 不嵌入前端,使用独立部署模式
# flags:
# - -tags=embed
flags:
- -tags=embed
env:
- CGO_ENABLED=0
goos:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment