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

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