chore: update build workflows for Electron and Go, including version tagging and dependency management

This commit is contained in:
CaIon
2025-10-05 17:11:30 +08:00
parent 02c0cbcc6a
commit 32f806d562
4 changed files with 61 additions and 37 deletions

View File

@@ -39,12 +39,13 @@ jobs:
- name: Build Backend
run: |
go mod download
go build -ldflags "-X 'one-api/common.Version=$(git describe --tags)'" -o new-api-macos
VERSION=$(git describe --tags)
go build -ldflags "-X 'one-api/common.Version=$VERSION'" -o new-api-macos-$VERSION
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: new-api-macos
files: new-api-macos-*
draft: true
generate_release_notes: true
env: