Skip to content

Commit

Permalink
fix release workflow (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal authored May 4, 2023
1 parent 9ab0bd0 commit 5e30c57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- name: Publish to Gradle plugin repository
id: deploy
if: github.ref == 'refs/heads/master'
run: |
./gradlew publishPlugins -Pgradle.publish.key=$PUBLISH_KEY -Pgradle.publish.secret=$PUBLISH_SECRET
shell: bash
Expand All @@ -37,6 +36,8 @@ jobs:
- name: Commit next development version
if: steps.deploy.outputs.exit_code == 0
run: |
git config user.email "githubbot@gluonhq.com"
git config user.name "Gluon Bot"
TAG=${GITHUB_REF/refs\/tags\//}
# Update README with the latest released version
sed -i "0,/id 'org.openjfx.javafxplugin' version '.*'/s//id 'org.openjfx.javafxplugin' version '$TAG'/" README.md
Expand All @@ -48,8 +49,8 @@ jobs:
newVersion=${TAG%.*}.$((${TAG##*.} + 1))
echo "Update project version to next snapshot version"
sed -i "0,/^version '$TAG'/s//version '$newVersion-SNAPSHOT'/" build.gradle
git commit build.gradle -m "Prepare development of $newVersion" --author "Github Bot <githubbot@gluonhq.com>"
git push https://gluon-bot:$PAT@github.com/openjfx/javafx-gradle-plugin HEAD:master
git commit build.gradle -m "Prepare development of $newVersion"
git push https://github.com/openjfx/javafx-gradle-plugin HEAD:master
env:
PAT: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 5e30c57

Please sign in to comment.