Archived
1
0

chore(ci): fix release scripts

This commit is contained in:
Akash Satheesan 2021-05-11 02:54:13 +05:30
parent d17c97c9cd
commit a5e8337c86
No known key found for this signature in database
GPG Key ID: 93CBAADFEA703F8E
2 changed files with 2 additions and 4 deletions

View File

@ -12,9 +12,7 @@ main() {
download_artifact release-packages ./release-packages download_artifact release-packages ./release-packages
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm}) local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
for i in "${!assets[@]}"; do
assets[$i]="--attach=${assets[$i]}"
done
EDITOR=true gh release upload "v$VERSION" "${assets[@]}" EDITOR=true gh release upload "v$VERSION" "${assets[@]}"
} }

View File

@ -54,7 +54,7 @@ arch() {
# https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs # https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
get_artifacts_url() { get_artifacts_url() {
local artifacts_url local artifacts_url
local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?status=success&event=pull_request" local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?event=pull_request"
# For releases, we look for run based on the branch name v$code_server_version # For releases, we look for run based on the branch name v$code_server_version
# example: v3.10.0 # example: v3.10.0
local version_branch="v$VERSION" local version_branch="v$VERSION"