Skip to content

Commit

Permalink
update release.yml and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bergerx committed Apr 22, 2024
1 parent 75e1e4b commit bfbe9f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
go-version-file: 'go.mod'
- name: GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected].43
uses: rajatjindal/[email protected].46
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

export GO111MODULE=on

PATH=/usr/bin:$$PATH

.DEFAULT_GOAL := bin

.PHONY: test
Expand All @@ -11,7 +13,7 @@ test: vet staticcheck
.PHONY: bin
bin: fmt vet staticcheck
mkdir -p bin
goreleaser build --single-target --skip-validate --rm-dist
goreleaser build --single-target --skip=validate --clean
ln -Ffs ../dist/status_$$(go env GOOS)_$$(go env GOARCH)_v1/status bin/

.PHONY: fmt
Expand All @@ -24,7 +26,7 @@ vet:

.PHONY: staticcheck
staticcheck:
go run honnef.co/go/tools/cmd/[email protected].3 ./...
go run honnef.co/go/tools/cmd/[email protected].7 ./...

.PHONY: clean
clean:
Expand Down

0 comments on commit bfbe9f6

Please sign in to comment.