mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-05 22:17:08 +00:00
Updated website target to bzip2 the content, as our deployment these days isn't via git, but via an ssh upload.
This commit is contained in:
@@ -116,11 +116,11 @@
|
||||
<param name="transformationName" value="SneakyThrows" />
|
||||
</antcall>
|
||||
<mkdir dir="dist" />
|
||||
<tar destfile="dist/website.tar">
|
||||
<tar destfile="dist/website.tar.bz2" compression="bzip2">
|
||||
<tarfileset dir="build/website" />
|
||||
<tarfileset dir="doc/api" prefix="api" />
|
||||
</tar>
|
||||
<echo>Now upload dist/website.tar to the webserver.</echo>
|
||||
<echo>Now upload dist/website.tar.bz2 to the webserver.</echo>
|
||||
<echo>If you want to host projectlombok.org on github, run the website/publish script, but this is not where the site is currently hosted.</echo>
|
||||
</target>
|
||||
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ if [ ! -e src/lombok/core/Version.java ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -e dist/website.tar ]; then
|
||||
echo There is no dist/website.tar file! Run:
|
||||
if [ ! -e dist/website.tar.bz2 ]; then
|
||||
echo There is no dist/website.tar.bz2 file! Run:
|
||||
echo ant website
|
||||
echo then restart this script
|
||||
exit
|
||||
@@ -26,7 +26,7 @@ echo first before running this script
|
||||
fi
|
||||
git checkout gh-pages || exit
|
||||
rm -r * || exit
|
||||
tar xf ../../../dist/website.tar || exit
|
||||
tar xfj ../../../dist/website.tar.bz2 || exit
|
||||
git add . || exit
|
||||
git commit -a -m website || exit
|
||||
git push origin gh-pages || exit
|
||||
|
||||
Reference in New Issue
Block a user