mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-08-01 07:21:05 +00:00
fix(ci): made release workflow work again
replace goreleaser --rm-dist flag by --clean increment go version for release pipeline fetch previous tags use by goreleaser give release workflow content write permissions to publish release
This commit is contained in:
parent
cd18882093
commit
71767429d1
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -19,14 +19,17 @@ on:
|
||||
- 'v*.*.*'
|
||||
jobs:
|
||||
goreleaser:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- run: git fetch --tags
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.20'
|
||||
go-version: '1.22'
|
||||
- name: Install Snapcraft
|
||||
uses: samuelmeuli/action-snapcraft@v1
|
||||
- name: Setup Snapcraft
|
||||
@ -38,7 +41,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update new version for plugin 'ctx' in krew-index
|
||||
|
Loading…
Reference in New Issue
Block a user