7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-02 06:10:47 +00:00

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

View File

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