ci: fix github ref name on release

This commit is contained in:
Régis Behmo 2022-11-29 16:14:56 +01:00
parent 429d528d64
commit 21a7b211d2
1 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ jobs:
# https://cli.github.com/manual/gh_release_create
run: |
make release-description | tee release_description.md
export GH_ARGS="${{ github.ref }} --notes-file=release_description.md"
echo "gh args: '$GH_ARGS"
export GH_ARGS="${{ github.ref_name }} --notes-file=release_description.md"
echo "gh args: '$GH_ARGS'"
${{ env.gh_bin }} release create $GH_ARGS || ${{ env.gh_bin }} release edit $GH_ARGS
env:
GH_TOKEN: ${{ github.token }}
@ -80,6 +80,6 @@ jobs:
run: |
export FILENAME="tutor-$(uname -s)_$(uname -m)"
mv ./dist/tutor $FILENAME
${{ env.gh_bin }} release upload --clobber ${{ github.ref }} $FILENAME
${{ env.gh_bin }} release upload --clobber ${{ github.ref_name }} $FILENAME
env:
GH_TOKEN: ${{ github.token }}