2020-05-12 04:08:22 +07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
# Downloads the release artifacts from CI for the current
|
|
|
|
# commit and then uploads them to the release with the version
|
|
|
|
# in package.json.
|
|
|
|
# You will need $GITHUB_TOKEN set.
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
source ./ci/lib.sh
|
|
|
|
|
|
|
|
download_artifact release-packages ./release-packages
|
2020-10-12 13:09:48 +07:00
|
|
|
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
|
2021-05-11 04:24:13 +07:00
|
|
|
|
2021-04-20 03:51:33 +07:00
|
|
|
EDITOR=true gh release upload "v$VERSION" "${assets[@]}"
|
2020-05-12 04:08:22 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|