forked from beryx/badass-jlink-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
21 lines (18 loc) · 863 Bytes
/
publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -ev
if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
if [ "$(git ls-remote origin gh-pages)" == "" ]; then
echo Start gitPublishPush with ghPageType=init
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=init
echo Finished gitPublishPush with ghPageType=init
fi
echo Start gitPublishPush with ghPageType=latest
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=latest
echo Finished gitPublishPush with ghPageType=version
echo Start gitPublishPush with ghPageType=version
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=version
echo Finished gitPublishPush with ghPageType=version
echo Start updating releases.md
./gradlew --no-daemon -i -s update-release-list gitPublishPush --rerun-tasks -PghPageType=list
echo Finished updating releases.md
fi