|
|
|
@ -31,13 +31,25 @@ jobs:
|
|
|
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0
|
|
|
|
|
with:
|
|
|
|
|
go-version: '${{ env.GOLANG_VERSION }}'
|
|
|
|
|
|
|
|
|
|
- name: Run unit tests
|
|
|
|
|
run: make test-coverage
|
|
|
|
|
|
|
|
|
|
- name: Build Helm Binaries
|
|
|
|
|
run: |
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
|
|
make build-cross VERSION="${{ github.ref_name }}"
|
|
|
|
|
- name: Run Go Release
|
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
|
if: success() && startsWith(github.ref, 'refs/tags/')
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
args: release --rm-dist
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
|
|
|
|
|
|
- name: Verify checksum
|
|
|
|
|
run: |
|
|
|
|
|
make dist checksum VERSION="${{ github.ref_name }}"
|
|
|
|
|
|
|
|
|
|
- name: Set latest version
|
|
|
|
@ -93,9 +105,17 @@ jobs:
|
|
|
|
|
- name: Run unit tests
|
|
|
|
|
run: make test-coverage
|
|
|
|
|
|
|
|
|
|
- name: Build Helm Binaries
|
|
|
|
|
- name: Run Go Release
|
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
|
if: success() && startsWith(github.ref, 'refs/tags/')
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
args: release --rm-dist
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
|
|
|
|
|
|
- name: Verify checksum
|
|
|
|
|
run: |
|
|
|
|
|
make build-cross
|
|
|
|
|
make dist checksum VERSION="canary"
|
|
|
|
|
|
|
|
|
|
- name: Upload Binaries
|
|
|
|
|