Skip to content

Commit d18db1c

Browse files
committed
Publish and release at the same time
1 parent 1914140 commit d18db1c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/ci_test_and_publish.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,13 @@ jobs:
2626
java-version: '21'
2727

2828
- name: Upload Artifacts
29-
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
29+
run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel
3030
env:
3131
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
3232
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
3333
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
3434
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
3535

36-
- name: Retrieve version
37-
run: |
38-
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
39-
- name: Publish release
40-
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
41-
if: "!endsWith(env.VERSION_NAME, '-SNAPSHOT')"
42-
env:
43-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
44-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
4536
test:
4637
runs-on: ubuntu-latest
4738
timeout-minutes: 30

0 commit comments

Comments
 (0)