Skip to content

Commit

Permalink
Fix publish to jfrog script
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhui-liu committed Aug 11, 2022
1 parent f874c11 commit 501b08d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group=io.tehuti
archivesBaseName=tehuti
version=0.9.0
version=0.9.1

signing.enabled=false
signing.keyId=
Expand Down
8 changes: 4 additions & 4 deletions scripts/publishToJfrog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ then
echo "script must be run from root project folder, not $PWD"
exit 1
else
echo "we are in $PWD and tag is $TRAVIS_TAG"
echo "we are in $PWD and tag is $SOURCE_TAG"

if [[ $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
if [[ $SOURCE_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
then
echo "tag $TRAVIS_TAG looks like a semver so proceeding with jfrog publish"
echo "tag $SOURCE_TAG looks like a semver so proceeding with jfrog publish"
git status
git describe --tags
./gradlew publishAllPublicationsToLinkedInJfrogRepository
else
echo "tag $TRAVIS_TAG is NOT a valid semantic version (x.y.z) so not publishing to jfrog"
echo "tag $SOURCE_TAG is NOT a valid semantic version (x.y.z) so not publishing to jfrog"
fi
fi

0 comments on commit 501b08d

Please sign in to comment.