Skip to content

Commit

Permalink
Use currentVersion to print published version
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslaw-panuszewski committed Nov 23, 2024
1 parent 36803e1 commit 64b0521
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Publish to staging repository
run: ./gradlew --info publishToSonatype findSonatypeStagingRepository
run: ./gradlew publishToSonatype currentVersion
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

scmVersion {
versionCreator("versionWithBranch")
unshallowRepoOnCI.set(true)
}

group = "pl.allegro.tech.build"
Expand Down

0 comments on commit 64b0521

Please sign in to comment.