Skip to content

Commit

Permalink
chore: Give the correct version to publish the snapshot version.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Dec 15, 2021
1 parent a82fa7a commit 8738b15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- name: Retrieve version
run: |
firstDigit=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2 | head -c 1 | tr -d "\n\r")
echo "VERSION_NAME=$((firstDigit+1)).0.0-SNAPSHOT" >> $GITHUB_ENV
- run: ./gradlew publish --no-daemon --no-parallel
if: endsWith(env.VERSION_NAME, '-SNAPSHOT')
echo "VERSION_NAME_SNAPSHOT=$((firstDigit+1)).0.0-SNAPSHOT" >> $GITHUB_ENV
- run: ./gradlew publish -PVERSION_NAME=$VERSION_NAME_SNAPSHOT --no-daemon --no-parallel
if: endsWith(env.VERSION_NAME_SNAPSHOT, '-SNAPSHOT')
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_OSS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_OSS_PASSWORD }}

0 comments on commit 8738b15

Please sign in to comment.