diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 132b165..19660fd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,6 +74,9 @@ jobs: if [[ "${GITHUB_REF_TYPE:-}" == "tag" ]]; then is_tag=true echo "🔖 Tag build detected: ${GITHUB_REF#refs/tags/}" + elif [[ "${{ github.event.inputs.tagbuild }}" == "true" ]]; then + is_tag=true + echo "🔖 Tag build detected: triggered by workflow" else is_tag=false echo "🏷️ Not a tag build (ref: ${GITHUB_REF})" @@ -112,9 +115,4 @@ jobs: md5sum ${{ steps.secring.outputs.filePath }} - name: publishAndReleaseToMavenCentral run: | - if [[ "${{ github.event.inputs.tagbuild }}" == "true" ]]; then - tagbuild="true" - else - tagbuild="false" - fi - ./gradlew -Ptagbuild="$tagbuild" publishAndReleaseToMavenCentral + ./gradlew -Ptagbuild="${{ steps.istagbuild.outputs.tagbuild }}" publishAndReleaseToMavenCentral diff --git a/CHANGELOG.md b/CHANGELOG.md index 958ff75..e122a86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [2.0.0] +## [Unreleased] + +## [2.0.0] - 2025-10-12 ### Added @@ -30,5 +32,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). First release of embedded ADRs. +[Unreleased]: https://github.com/adr/e-adr/compare/2.0.0...main [2.0.0]: https://github.com/adr/e-adr/compare/1.0.0...2.0.0 [1.0.0]: https://github.com/adr/e-adr/releases/tag/1.0.0 diff --git a/build.gradle.kts b/build.gradle.kts index cd12bc1..e98f329 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ repositories { group = "io.github.adr" -var version: String = project.findProperty("projVersion")?.toString() ?: "2.0.0" +var version: String = project.findProperty("projVersion")?.toString() ?: "2.0.1" if (project.findProperty("tagbuild")?.toString() != "true") { version += "-SNAPSHOT" } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..5ad6974 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.configuration-cache=true