Skip to content

Commit

Permalink
Add fastly purging to contrib/prepare_release.sh (#22277)
Browse files Browse the repository at this point in the history
* Add fastly purging to cotnrib/prepare_release.sh

Fastly caches our files for a long time; we need to explicitly ask it to purge the -latest files.

* Add `+` character for osx fastly purge
  • Loading branch information
staticfloat authored and tkelman committed Jun 8, 2017
1 parent 2d8c0f9 commit dde6ff6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/prepare_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,25 @@ for plat in x86_64 i686 arm ppc64le; do
s3://julialang/bin/linux/$platshort/$majmin/
aws s3 cp --acl public-read julia-$majmin-latest-linux-$plat.tar.gz \
s3://julialang/bin/linux/$platshort/$majmin/
curl -X PURGE -L "https://julialang-s3.julialang.org/bin/linux/$platshort/$majmin/julia-$majmin-latest-linux-$plat.tar.gz"
done
aws s3 cp --acl public-read "julia-$version-osx10.7 .dmg" \
s3://julialang/bin/osx/x64/$majmin/
aws s3 cp --acl public-read "julia-$majmin-latest-osx10.7 .dmg" \
s3://julialang/bin/osx/x64/$majmin/
curl -X PURGE -L "https://julialang-s3.julialang.org/bin/osx/x64/$majmin/julia-$majmin-latest-osx10.7 .dmg"
curl -X PURGE -L "https://julialang-s3.julialang.org/bin/osx/x64/$majmin/julia-$majmin-latest-osx10.7+.dmg"
aws s3 cp --acl public-read "julia-$version-win64.exe" \
s3://julialang/bin/winnt/x64/$majmin/
aws s3 cp --acl public-read "julia-$majmin-latest-win64.exe" \
s3://julialang/bin/winnt/x64/$majmin/
curl -X PURGE -L "https://julialang-s3.julialang.org/bin/winnt/x64/$majmin/julia-$majmin-latest-win64.exe"
aws s3 cp --acl public-read "julia-$version-win32.exe" \
s3://julialang/bin/winnt/x86/$majmin/
aws s3 cp --acl public-read "julia-$majmin-latest-win32.exe" \
s3://julialang/bin/winnt/x86/$majmin/
curl -X PURGE -L "https://julialang-s3.julialang.org/bin/winnt/x86/$majmin/julia-$majmin-latest-win32.exe"


echo "All files prepared. Attach julia-$version.tar.gz"
echo "and julia-$version-full.tar.gz to github releases."

0 comments on commit dde6ff6

Please sign in to comment.