From 1b3c42699a30b6bcc7295d3f433dad9cd520f130 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Thu, 8 Feb 2024 09:10:35 -0500 Subject: [PATCH] fix(golang-rewrite): attempt to fix goreleaser GitHub workflow --- .github/workflows/release-build.yml | 5 +++-- .goreleaser.yaml | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 5f4b7887..33615135 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -61,7 +61,9 @@ jobs: # # See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027 #echo "ASDF_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - echo "ASDF_VERSION=${GITHUB_SHA::7}" >> "$GITHUB_ENV" + # Once we're using this for real releases we'll want to change this + # line below to contain the actual tag name + echo "ASDF_VERSION=0.0.0" >> "$GITHUB_ENV" echo "version is: ${{ env.ASDF_VERSION }}" - uses: actions/checkout@v3 - name: Create GitHub release @@ -93,7 +95,6 @@ jobs: # Downgraded to version 4 to get snapshot feature working uses: goreleaser/goreleaser-action@v4 with: - distribution: goreleaser version: latest args: release --clean --snapshot env: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4094b769..9f2ee078 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -44,3 +44,8 @@ changelog: exclude: - "^docs:" - "^test:" + +snapshot: + # Dev prefix for snapshot builds as theses aren't intended for anything other + # than testing. + name_template: 'dev-{{ .Version }}-{{ .ShortCommit }}'