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:
parent
c77e91119f
commit
301e97895b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user