mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 20:00:00 +00:00
a4da212f11
Updated release-tool scripts to valkey, This PR covered only the file names for the tarball but still location needs to be updated accordingly. Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
24 lines
974 B
Bash
Executable File
24 lines
974 B
Bash
Executable File
#!/bin/bash
|
|
if [ $# != "1" ]
|
|
then
|
|
echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Uploading..."
|
|
scp /tmp/valkey-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/
|
|
echo "Updating web site... "
|
|
echo "Please check the github action tests for the release."
|
|
echo "Press any key if it is a stable release, or Ctrl+C to abort"
|
|
read x
|
|
ssh ubuntu@host.redis.io "cd /var/www/download;
|
|
rm -rf valkey-${1}.tar.gz;
|
|
wget http://download.redis.io/releases/redis-${1}.tar.gz;
|
|
tar xvzf redis-${1}.tar.gz;
|
|
rm -rf valkey-stable;
|
|
mv valkey-${1} valkey-stable;
|
|
tar cvzf valkey-stable.tar.gz valkey-stable;
|
|
rm -rf valkey-${1}.tar.gz;
|
|
shasum -a 256 valkey-stable.tar.gz > valkey-stable.tar.gz.SHA256SUM;
|
|
"
|