Skip to content

Commit dfc1328

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

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/ci_test_and_publish.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ jobs:
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

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ POM_DEVELOPER_ID = mplat-dbx
4141
POM_DEVELOPER_NAME = Dropbox
4242
POM_DEVELOPER_URL = https://github.com/dropbox/
4343
POM_DEVELOPER_EMAIL = [email protected]
44+
45+
mavenCentralAutomaticPublishing=true

0 commit comments

Comments
 (0)