Skip to content

Commit e30876b

Browse files
Fix version inference when performing a release (#48)
- Fixes #46.
1 parent 118e663 commit e30876b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
gradle-version: wrapper
4141
arguments: |
42-
-Preckon.stage=final
42+
-Preckon.stage=
4343
publishAllPublicationsToGitHubRepository
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
gradle-version: wrapper
5252
arguments: |
53-
-Preckon.stage=final
53+
-Preckon.stage=
5454
publishToSonatype
5555
closeAndReleaseSonatypeStagingRepository
5656
env:

gradle.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ kotlin.native.ignoreDisabledTargets=true
33
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=1g
44
org.gradle.java.installations.auto-download=false
55

6+
# major: 1.0.0 -> 2.0.0-SNAPSHOT
67
# minor: 1.0.0 -> 1.1.0-SNAPSHOT
78
# patch: 1.0.0 -> 1.0.1-SNAPSHOT
89
reckon.scope=patch
910

10-
# Either `snapshot` or `final`.
11+
# Either `snapshot`, or `final` (increment the version and perform a release),
12+
# or an empty string (re-use the tag of the HEAD revision and perform a release).
13+
#
14+
# See this comment for details:
15+
# https://github.com/ajoberstar/reckon/issues/133#issuecomment-1037695265
1116
reckon.stage=snapshot

0 commit comments

Comments
 (0)