💚 ci: Update build command in macos-release.yml

This commit is contained in:
Martial BE 2024-03-20 11:54:38 +08:00
parent 8e1c02a6dc
commit 0409de0ea9
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -33,7 +33,7 @@ jobs:
- name: Build Backend
run: |
go mod download
go build -ldflags "-X 'one-api/common.Version=$(git describe --tags)'" -o one-api-macos
go build -ldflags "-s -w -X 'one-api/common.Version=$(git describe --tags)'" -o one-api-macos
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')