mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
20 lines
483 B
Bash
Executable File
20 lines
483 B
Bash
Executable File
#!/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
|
|
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
|
|
|
|
EDITOR=true gh release upload "v$VERSION" "${assets[@]}"
|
|
}
|
|
|
|
main "$@"
|