Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: release

on:
# Preferred: run when a semver tag is pushed (vX.Y.Z or vX.Y.Z-rc1, etc.)
push:
tags:
- "v*"
# Manual run (optional)
workflow_dispatch:

permissions:
Expand All @@ -21,20 +19,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # GoReleaser needs full history/tags
fetch-depth: 0
ref: ${{ github.ref }} # build the tagged commit

- name: Set up Go
uses: actions/setup-go@v5
with:
# Use the Go version you actually build with; adjust if needed
go-version: "1.24.x"
go-version: "1.24.x"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
# If you have a PAT with extra perms (e.g., for Homebrew tap),
# keep PUBLISHER_TOKEN. Otherwise GITHUB_TOKEN is fine.
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN || secrets.GITHUB_TOKEN }}
17 changes: 6 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
version: 2

builds:
- binary: runpodctl
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -mod=mod
goos: [darwin, linux, windows]
goarch: [amd64, arm64]
env: [CGO_ENABLED=0]
flags: [-mod=mod]

release:
prerelease: auto
Expand Down