Skip to content

Commit

Permalink
Merge pull request #19 from asdf-vm/tb/attempt-to-fix-goreleaser-3
Browse files Browse the repository at this point in the history
fix(golang-rewrite): attempt to fix goreleaser GitHub workflow
  • Loading branch information
Stratus3D authored Feb 8, 2024
2 parents 9b65c41 + 47fa2fe commit c61489e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'

0 comments on commit c61489e

Please sign in to comment.