From 4913a73fde623a83ef910ba9d66877a241cb90f2 Mon Sep 17 00:00:00 2001 From: Istvan Kispal Date: Mon, 25 Nov 2024 16:09:19 +0100 Subject: [PATCH] Fix missing kpt cli from release action --- .github/workflows/release.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aef04229..2188ec25 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,6 +19,8 @@ on: - "v[0-9]+.[0-9]+.[0-9]" - "v[0-9]+.[0-9]+.[0-9]-pre[0-9]+" + workflow_dispatch: + jobs: build: runs-on: ubuntu-latest @@ -29,21 +31,25 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '>=1.22.2' + go-version: ">=1.22.2" + - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - + + - name: Download kpt CLI + run: mkdir -p bin && wget -O bin/kpt https://github.com/kptdev/kpt/releases/download/v1.0.0-beta.55/kpt_linux_amd64 && chmod +x bin/kpt + - name: Build porch blueprint - run: IMAGE_REPO=docker.io/nephio IMAGE_TAG=${{ github.ref_name }} make deployment-config + run: PATH=./bin:$PATH IMAGE_REPO=docker.io/nephio IMAGE_TAG=${{ github.ref_name }} make deployment-config - name: Run GoReleaser id: run-goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --skip-validate -f release/tag/goreleaser.yaml + version: "~> v2" + args: release --skip=validate -f release/tag/goreleaser.yaml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}