Skip to content

Commit

Permalink
better version reporting from gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Aug 18, 2024
1 parent 2f17b1b commit 3f52aed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: "Get version from tag"
id: version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ val signingPassword: String? by project
val sonatypeUser: String? by project
val sonatypePassword: String? by project

println("github actor: $githubActor")
println("Project: ${project.name}")
println("Version: ${project.version}")
println("Release: $isReleaseBuild")

allprojects {
repositories {
Expand Down

0 comments on commit 3f52aed

Please sign in to comment.