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:
parent
429d528d64
commit
21a7b211d2
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user