Skip to content

Commit

Permalink
fix: gradle version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Otanikotani committed Feb 27, 2020
1 parent 28fd180 commit 82240f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@ jobs:
extra_plugins: |
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
@semantic-release/github
gradle-semantic-release-plugin
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish the plugin
if: steps.semantic.outputs.new_release_published == 'true'
run: ./gradlew publish
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_intellijPublishToken: ${{ secrets.INTELLIJ_PUBLISH_TOKEN }}
5 changes: 4 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
["@semantic-release/changelog", {
"changelogFile": "docs/CHANGELOG.md"
}],

["@semantic-release/github", {
"assets": ["docs/CHANGELOG.md"]
}],
"gradle-semantic-release-plugin",
["@semantic-release/exec", {
"successCmd": "sed -i \"s/version=[[:digit:]]\\+\\.[[:digit:]]\\+\\.[[:digit:]]\\+/version=${nextRelease.version/g\" gradle.properties"
}],
["@semantic-release/git", {
"assets": ["docs/CHANGELOG.md", "gradle.properties"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.0.2
version=1.2.3

0 comments on commit 82240f4

Please sign in to comment.