summaryrefslogtreecommitdiffstats
path: root/utils/releasetools/02_upload_tarball.sh
blob: ef1e777cc7d254ddcb79ac55ac148c67a6ec6ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [ $# != "1" ]
then
    echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>"
    exit 1
fi

echo "Uploading..."
scp /tmp/redis-${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 redis-${1}.tar.gz;
                          wget http://download.redis.io/releases/redis-${1}.tar.gz;
                          tar xvzf redis-${1}.tar.gz;
                          rm -rf redis-stable;
                          mv redis-${1} redis-stable;
                          tar cvzf redis-stable.tar.gz redis-stable;
                          rm -rf redis-${1}.tar.gz;
                          shasum -a 256 redis-stable.tar.gz > redis-stable.tar.gz.SHA256SUM;
                          "