-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
echo "::group::Setup" | ||
git config --global user.name rtx-vm | ||
git config --global user.email [email protected] | ||
|
||
|
@@ -10,7 +11,9 @@ RELEASE_DIR=releases | |
export BASE_DIR RTX_VERSION RELEASE_DIR | ||
rm -rf "${RELEASE_DIR:?}/$RTX_VERSION" | ||
mkdir -p "$RELEASE_DIR/$RTX_VERSION" | ||
echo "::endgroup::" | ||
|
||
echo "::group::Build" | ||
find artifacts -name 'tarball-*' -exec sh -c ' | ||
target=${1#artifacts/tarball-} | ||
cp "artifacts/tarball-$target/"*.tar.gz "$RELEASE_DIR/$RTX_VERSION" | ||
|
@@ -36,7 +39,9 @@ for platform in "${platforms[@]}"; do | |
cp -v rtx/bin/rtx "$RELEASE_DIR/rtx-latest-$platform" | ||
cp -v rtx/bin/rtx "$RELEASE_DIR/$RTX_VERSION/rtx-$RTX_VERSION-$platform" | ||
done | ||
echo "::endgroup::" | ||
|
||
echo "::group::Checksums" | ||
pushd "$RELEASE_DIR" | ||
echo "$RTX_VERSION" | tr -d 'v' >VERSION | ||
cp rtx-latest-linux-x64 rtx-latest-linux-amd64 | ||
|
@@ -53,20 +58,30 @@ sha512sum ./* >SHASUMS512.txt | |
gpg --clearsign -u 408B88DB29DDE9E0 <SHASUMS256.txt >SHASUMS256.asc | ||
gpg --clearsign -u 408B88DB29DDE9E0 <SHASUMS512.txt >SHASUMS512.asc | ||
popd | ||
echo "::endgroup::" | ||
|
||
echo "::group::install.sh" | ||
./rtx/scripts/render-install.sh >"$RELEASE_DIR"/install.sh | ||
chmod +x "$RELEASE_DIR"/install.sh | ||
shellcheck "$RELEASE_DIR"/install.sh | ||
gpg -u 408B88DB29DDE9E0 --output "$RELEASE_DIR"/install.sh.sig --sign "$RELEASE_DIR"/install.sh | ||
echo "::endgroup::" | ||
|
||
if [[ "$DRY_RUN" != 1 ]]; then | ||
echo "::group::Publish npm @jdxcode/rtx" | ||
NPM_PREFIX=@jdxcode/rtx ./rtx/scripts/release-npm.sh | ||
echo "::endgroup::" | ||
echo "::group::Publish npm rtx-cli" | ||
NPM_PREFIX=rtx-cli ./rtx/scripts/release-npm.sh | ||
#AWS_S3_BUCKET=rtx.jdx.dev ./rtx/scripts/publish-s3.sh | ||
echo "::endgroup::" | ||
echo "::group::Publish r2" | ||
./rtx/scripts/publish-r2.sh | ||
echo "::endgroup::" | ||
fi | ||
|
||
echo "::group::Publish homebrew" | ||
./rtx/scripts/render-homebrew.sh >homebrew-tap/rtx.rb | ||
pushd homebrew-tap | ||
git add . && git commit -m "rtx ${RTX_VERSION#v}" | ||
popd | ||
echo "::endgroup::" |