Skip to content

Commit

Permalink
GORELEASER-ACTION-V6 - update goreleaser-action to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
hashmap-kz committed Jan 6, 2025
1 parent 3a943d4 commit b63e213
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: release

on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: '1.23'
go-version-file: go.mod

- name: GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.25
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2

before:
hooks:
- go mod download

builds:
- id: kubectl-envsubst
main: ./cmd/kubectl-envsubst.go
Expand Down

0 comments on commit b63e213

Please sign in to comment.