Automatically set release name from tag message
This commit is contained in:
parent
904561fb8e
commit
6a717377df
7
.github/workflows/package.yaml
vendored
7
.github/workflows/package.yaml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user