From 95b269eca72f670111b43ddf9a853927778ad489 Mon Sep 17 00:00:00 2001 From: Abhinay Agarwal Date: Mon, 19 Apr 2021 11:33:22 +0530 Subject: [PATCH] Update gluon-samples on release --- .ci/release.sh | 5 ++++- .ci/update-gluon-samples.sh | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 .ci/update-gluon-samples.sh diff --git a/.ci/release.sh b/.ci/release.sh index 180eb74..b7401ab 100644 --- a/.ci/release.sh +++ b/.ci/release.sh @@ -42,4 +42,7 @@ git push https://gluon-bot:$GITHUB_PASSWORD@github.com/$TRAVIS_REPO_SLUG HEAD:ma bash .ci/update-archetypes.sh "$TRAVIS_TAG" # Update openjfx-docs -bash .ci/update-openjfx-docs.sh "$TRAVIS_TAG" \ No newline at end of file +bash .ci/update-openjfx-docs.sh "$TRAVIS_TAG" + +# Update gluon-samples +bash .ci/update-gluon-samples.sh "$TRAVIS_TAG" \ No newline at end of file diff --git a/.ci/update-gluon-samples.sh b/.ci/update-gluon-samples.sh new file mode 100755 index 0000000..d7a1fe1 --- /dev/null +++ b/.ci/update-gluon-samples.sh @@ -0,0 +1,11 @@ +SAMPLES_REPO_SLUG=gluonhq/gluon-samples + +cd $TRAVIS_BUILD_DIR +git clone https://github.com/$SAMPLES_REPO_SLUG +cd gluon-samples + +# Update plugin version +mvn versions:set-property -Dproperty=javafx.maven.plugin.version -DnewVersion="$1" -DgenerateBackupPoms=false + +git commit pom.xml -m "Update javafx-maven-plugin version to $1" +git push https://gluon-bot:$GITHUB_PASSWORD@github.com/$SAMPLES_REPO_SLUG HEAD:master