Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Jan 29, 2021
1 parent b7efb6d commit 0dfa118
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ die () {
echo $1 | grep -E -q '^[0-9]+\.[0-9]+(\.[0-9]+)$' || die "Semantic Version argument required, $1 provided"

export TAG=$1

echo "tagging"

git tag $TAG

echo "publishing $TAG"

gradle -Pgroup=com.github.jillesvangurp -Pversion=$TAG publish
rsync -azp localrepo/* jillesvangurpcom@ftp.jillesvangurp.com:/srv/home/jillesvangurpcom/domains/jillesvangurp.com/htdocs/www/maven
rsync -azp localrepo/* jillesvangurpcom@ftp.jillesvangurp.com:/srv/home/jillesvangurpcom/domains/jillesvangurp.com/htdocs/www/maven


git push --tags

0 comments on commit 0dfa118

Please sign in to comment.