Skip to content

Commit

Permalink
Merge pull request #128 from DireLines/removeReleasePlease
Browse files Browse the repository at this point in the history
fix: attach version tag to goreleaser
  • Loading branch information
justinmerrell authored Mar 1, 2024
2 parents 49956ce + ae101c6 commit 8591bd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ jobs:
distribution: goreleaser
version: latest
args: release --clean
ldflags: "-X 'main.Version=${{ steps.release.outputs.tag_name }}'"
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
VERSION: ${{ steps.release.outputs.tag_name }}
# - name: upload linux arm64 release binary
# uses: actions/[email protected]
# env:
Expand Down
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ builds:
- arm64
env:
- CGO_ENABLED=0
- VERSION={{ .Env.VERSION }}
flags:
- -mod=mod
ldflags:
- -X 'main.Version=$VERSION'

release:
prerelease: auto
Expand All @@ -18,8 +21,7 @@ universal_binaries:
- replace: true

brews:
-
name: runpod
- name: runpod
homepage: "https://github.com/runpod/runpodctl"
repository:
owner: runpod
Expand All @@ -29,4 +31,4 @@ brews:
email: [email protected]

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

0 comments on commit 8591bd3

Please sign in to comment.