Skip to content

Commit

Permalink
Fix version inference when performing a release (#48)
Browse files Browse the repository at this point in the history
- Fixes #46.
  • Loading branch information
0x6675636b796f75676974687562 authored Jul 12, 2023
1 parent 118e663 commit e30876b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
gradle-version: wrapper
arguments: |
-Preckon.stage=final
-Preckon.stage=
publishAllPublicationsToGitHubRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -50,7 +50,7 @@ jobs:
with:
gradle-version: wrapper
arguments: |
-Preckon.stage=final
-Preckon.stage=
publishToSonatype
closeAndReleaseSonatypeStagingRepository
env:
Expand Down
7 changes: 6 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ kotlin.native.ignoreDisabledTargets=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=1g
org.gradle.java.installations.auto-download=false

# major: 1.0.0 -> 2.0.0-SNAPSHOT
# minor: 1.0.0 -> 1.1.0-SNAPSHOT
# patch: 1.0.0 -> 1.0.1-SNAPSHOT
reckon.scope=patch

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

0 comments on commit e30876b

Please sign in to comment.