Skip to content

Commit 7fbee93

Browse files
committed
fix release action
1 parent 4979a39 commit 7fbee93

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
- name: Decrypt secrets
2121
run: |
2222
echo ${{ secrets.ENCRYPT_KEY }} | release/signing-unpack.sh
23-
mv gradle.properties gradle.backup.properties
24-
cat gradle.backup.properties | grep -v configuration-cache > gradle.properties
2523
- name: Deploy to Sonatype
26-
run: ./gradlew publish
24+
env:
25+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
26+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
27+
run: |
28+
./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
2729
- name: Build AAB & APK
2830
run: |
2931
./gradlew :demo:bundleRelease :demo:assembleRelease

0 commit comments

Comments
 (0)