Skip to content

Commit

Permalink
build: fix GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Oct 30, 2022
1 parent 0c6c7aa commit baf3e0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build Backend
run: |
go mod download
go build -ldflags "-s -w -extldflags '-static' -X 'gin-template/common.Version=${git describe --tags}'" -o gin-template
go build -ldflags "-s -w -extldflags '-static' -X 'gin-template/common.Version=$(git describe --tags)'" -o gin-template
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build Backend
run: |
go mod download
go build -ldflags "-X 'gin-template/common.Version=${git describe --tags}'" -o gin-template-macos
go build -ldflags "-X 'gin-template/common.Version=$(git describe --tags)'" -o gin-template-macos
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build Backend
run: |
go mod download
go build -ldflags "-s -w -extldflags '-static' -X 'gin-template/common.Version=${git describe --tags}'" -o gin-template.exe
go build -ldflags "-s -w -extldflags '-static' -X 'gin-template/common.Version=$(git describe --tags)'" -o gin-template.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit baf3e0e

Please sign in to comment.