Skip to content

Commit

Permalink
fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
milonoir committed Oct 12, 2023
1 parent 4ac0c91 commit 9e0886d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
uses: magefile/mage-action@v3
with:
install-only: true
- name: Extract version
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build binaries with Mage
run: |
mage v-all ${GITHUB_REF#refs/tags/}
mage v-win ${GITHUB_REF#refs/tags/}
mage v-mac ${GITHUB_REF#refs/tags/}
mage v-all ${VERSION}
mage v-win ${VERSION}
mage v-mac ${VERSION}
- name: Release Notes
run: |
git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
Expand All @@ -38,7 +41,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
bin/*
bin/win64/*
bin/darwin/*
body_path: ".github/RELEASE-TEMPLATE.md"
tag_name: ${{ github.ref }}
tag_name: ${VERSION}
draft: false
prerelease: false

0 comments on commit 9e0886d

Please sign in to comment.