From da565b8b114f60250137f48c1cd75425b140b9d4 Mon Sep 17 00:00:00 2001 From: piontec Date: Mon, 1 Jun 2026 15:31:12 +0200 Subject: [PATCH] fix: install gitsemver in create-release build artifacts job Makefiles generated by devctl now use `gitsemver version` to compute the build version (introduced with architect-orb v9.0.0). The GHA runner doesn't have gitsemver pre-installed, causing VERSION to be empty and the packaged artifact to be named without the version string, so the upload step fails to find the expected file. --- .github/workflows/create-release.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 510bd0d..bbc42c2 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -337,6 +337,14 @@ jobs: with: binary: "architect" version: "6.14.1" + - name: Install gitsemver + uses: giantswarm/install-binary-action@5bef88f65012037dd836117c8d344b21bb559854 # v4.1.0 + with: + binary: "gitsemver" + version: "1.1.2" + download_url: "https://github.com/giantswarm/${binary}/releases/download/v${version}/${binary}-v${version}-linux-amd64.tar.gz" + tarball_binary_path: "*/${binary}" + smoke_test: "${binary} version" - name: Set up Go ${{ env.GO_VERSION }} uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: @@ -353,7 +361,7 @@ jobs: run: make package-${{ matrix.platform }} - name: Specify package file name based on platform run: | - if [[ "${{ matrix.platform }}" == "windows-amd64" ]]; then + if [[ "${{ matrix.platform }}" == "windows-amd64" ]]; then echo "FILE_NAME=${{ github.event.repository.name }}-${{ env.TAG }}-${{ matrix.platform }}.zip" >> $GITHUB_ENV else echo "FILE_NAME=${{ github.event.repository.name }}-${{ env.TAG }}-${{ matrix.platform }}.tar.gz" >> $GITHUB_ENV