Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/ci/build/release-github-assets.sh

20 lines
483 B
Bash
Raw Normal View History

2020-05-11 17:08:22 -04: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 02:09:48 -04:00
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
2021-05-11 02:54:13 +05:30
EDITOR=true gh release upload "v$VERSION" "${assets[@]}"
2020-05-11 17:08:22 -04:00
}
main "$@"