Skip to content

Commit

Permalink
Build: Fetch all tags before publishing SNAPSHOT (apache#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastra authored Oct 28, 2021
1 parent 81fba70 commit 3291f20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# we need to fetch all tags so that getProjectVersion() in build.gradle correctly determines the next SNAPSHOT version from the newest tag
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 8
- run: |
./gradlew printVersion
./gradlew publishApachePublicationToMavenRepository -PmavenUser=${{ secrets.NEXUS_USER }} -PmavenPassword=${{ secrets.NEXUS_PW }}

0 comments on commit 3291f20

Please sign in to comment.