1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-27 14:14:19 +03:00

Use GH_TOKEN for all gh actions

This commit is contained in:
Tae Won Ha 2024-01-02 23:37:45 +01:00
parent c77e91119f
commit 301e97895b
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -90,10 +90,6 @@ create_gh_release() {
}
upload_artifact() {
local -x GH_TOKEN
GH_TOKEN=$(cat ~/.local/secrets/github.qvacua.release.token)
readonly GH_TOKEN
echo "### Uploading artifact"
gh release upload "${tag}" "${vimr_artifact_path}"
echo "### Uploaded artifact"
@ -133,6 +129,10 @@ main() {
exit 0
fi
local -x GH_TOKEN
GH_TOKEN=$(cat ~/.local/secrets/github.qvacua.release.token)
readonly GH_TOKEN
create_gh_release
if [[ "${upload}" == true ]]; then