Skip to content

Commit 626f866

Browse files
committed
Ensure the profile repo has the correct Grails version before tagging
1 parent 9c2b90f commit 626f866

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

travis-build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0
8181
# Tag the Profile Repo
8282
git clone https://${GH_TOKEN}@github.com/grails/grails-profile-repository.git
8383
cd grails-profile-repository
84+
8485
git branch --track 3.1.x remotes/origin/3.1.x
8586
git checkout 3.1.x
87+
88+
echo "grails.version=${TRAVIS_TAG:1}" > profiles/gradle.properties
89+
git add profiles/gradle.properties
90+
git commit -m "Release $TRAVIS_TAG profiles"
91+
8692
git tag $TRAVIS_TAG
8793
git push --tags
8894
git push

0 commit comments

Comments
 (0)