Automatically set release name from tag message

This commit is contained in:
Timmy Welch 2022-09-10 22:35:30 -07:00
parent 904561fb8e
commit 6a717377df
No known key found for this signature in database

View File

@ -74,10 +74,17 @@ jobs:
run: |
make dist
- name: Get release name
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
echo "release_name=$(git tag -l --format "%(refname:strip=2): %(contents:lines=1)" ${{ github.ref_name }})" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: env.release_name
prerelease: "${{ contains(github.ref, '-') }}" # alpha-releases should be 1.3.0-alpha.x full releases should be 1.3.0
draft: false
files: |