release-kubectl-plugin #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-kubectl-plugin | |
on: | |
workflow_dispatch: | |
jobs: | |
release-kubectl-plugin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Error if not a tag | |
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
echo "::error not a tag" | |
exit 1 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: 'goreleaser' | |
version: latest | |
args: release --clean | |
workdir: 'kubectl-plugin' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Update new version in krew-index | |
# uses: rajatjindal/krew-release-bot@v0.0.46 |