Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
e91fba82
Commit
e91fba82
authored
Jan 04, 2026
by
song
Browse files
fix(ci): simple release 也构建前端
parent
84d6480b
Changes
2
Show whitespace changes
Inline
Side-by-side
.github/workflows/release.yml
View file @
e91fba82
...
...
@@ -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
...
...
.goreleaser.simple.yaml
View file @
e91fba82
...
...
@@ -12,9 +12,8 @@ builds:
dir
:
backend
main
:
./cmd/server
binary
:
sub2api
# 不嵌入前端,使用独立部署模式
# flags:
# - -tags=embed
flags
:
-
-tags=embed
env
:
-
CGO_ENABLED=0
goos
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment