02_upload_tarball.sh 964 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. if [ $# != "1" ]
  3. then
  4. echo "Usage: ./utils/releasetools/02_upload_tarball.sh <version_tag>"
  5. exit 1
  6. fi
  7. echo "Uploading..."
  8. scp /tmp/redis-${1}.tar.gz ubuntu@host.redis.io:/var/www/download/releases/
  9. echo "Updating web site... "
  10. echo "Please check the github action tests for the release."
  11. echo "Press any key if it is a stable release, or Ctrl+C to abort"
  12. read x
  13. ssh ubuntu@host.redis.io "cd /var/www/download;
  14. rm -rf redis-${1}.tar.gz;
  15. wget http://download.redis.io/releases/redis-${1}.tar.gz;
  16. tar xvzf redis-${1}.tar.gz;
  17. rm -rf redis-stable;
  18. mv redis-${1} redis-stable;
  19. tar cvzf redis-stable.tar.gz redis-stable;
  20. rm -rf redis-${1}.tar.gz;
  21. shasum -a 256 redis-stable.tar.gz > redis-stable.tar.gz.SHA256SUM;
  22. "