We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 893e5b1 + 524b69e commit 1ae4213Copy full SHA for 1ae4213
.github/workflows/publish.yml
@@ -2,7 +2,7 @@ name: Publish package to GitHub Packages
2
on:
3
push:
4
branches:
5
- - 'publish'
+ - '*-rc*'
6
jobs:
7
publish:
8
runs-on: ubuntu-latest
build.gradle
@@ -342,6 +342,10 @@ def getSnapshotVersion() {
342
logger.lifecycle('Release branch found')
343
return "${extractVersionFromBranch(grgit.branch.current().name)}-SNAPSHOT"
344
}
345
+ if (grgit.branch.current().name.contains('-rc')) {
346
+ logger.lifecycle('Release candidate branch found')
347
+ return "${grgit.branch.current().name}"
348
+ }
349
logger.lifecycle('Feature branch found')
350
return "feature-${grgit.branch.current().name}-SNAPSHOT"
351
0 commit comments