Skip to content
Merged
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
44 changes: 28 additions & 16 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,38 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Free disk space
uses: thiagokokada/free-disk-space@9a03d73a373bab1e204b8815f5c7752392482762
with:
# All of these do save some disk space, but are also somewhat slow to delete.
# So we keep them to just speed up the workflow overall.
android: false
aws-cli: false
debug: false
docker-images: false
google-cloud-sdk: false
heroku: false
llvm: false
opt: false
powershell: false
python: false
ruby: false
rust: false
tool-cache: false
usrlocal: false
usrmisc: false
varcache: false

- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
with:
fetch-depth: 0

- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # tag=v6.0.0
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # tag=v6.0.0
with:
go-version: v1.24.5

- name: Download go modules
run: |
echo "Downloading modules for go.mod"
go mod download
for gomod in **/go.mod; do
echo "Downloading modules for $gomod"
cd $(dirname $gomod)
go mod download
cd -
done

- name: Delete non-semver tags
run: 'git tag -d $(git tag -l | grep -v "^v")'

Expand All @@ -47,8 +59,8 @@ jobs:
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0
with:
distribution: goreleaser
version: latest
args: release --timeout 60m --parallelism 1 --fail-fast
version: '~> v2'
args: release --timeout 60m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }}
Expand All @@ -58,8 +70,8 @@ jobs:
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0
with:
distribution: goreleaser
version: latest
args: release --timeout 60m --snapshot --parallelism 1 --fail-fast
version: '~> v2'
args: release --timeout 60m --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }}
Expand Down