set the target in the created release (#4758)

the target needs to be the current short commit hash because it is being
compared to by the updater, the default is "master" which breaks the
updater.
This commit is contained in:
ebbit1q 2023-02-23 01:11:41 +01:00 committed by GitHub
parent f444ba9665
commit 4558b1c7ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,7 @@ jobs:
env: env:
GH_TOKEN: ${{github.token}} GH_TOKEN: ${{github.token}}
tag_name: ${{steps.configure.outputs.tag}} tag_name: ${{steps.configure.outputs.tag}}
target: ${{github.ref}}
release_name: ${{steps.prepare.outputs.title}} release_name: ${{steps.prepare.outputs.title}}
body_path: ${{steps.prepare.outputs.body_path}} body_path: ${{steps.prepare.outputs.body_path}}
prerelease: ${{steps.prepare.outputs.is_beta}} prerelease: ${{steps.prepare.outputs.is_beta}}
@ -75,7 +76,8 @@ jobs:
args="--prerelease" args="--prerelease"
fi fi
gh release create "$tag_name" --draft --verify-tag $args \ gh release create "$tag_name" --draft --verify-tag $args \
--title "$release_name" --notes-file "$body_path" --target "$target" --title "$release_name" \
--notes-file "$body_path"
build-linux: build-linux:
strategy: strategy: