File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5656 else
5757 # release: we want to build all archs (default)
58- TASKS="publishAllToMavenTempLocal publishAndroidToSonatype closeSonatypeStagingRepository build"
58+ TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5959 fi
6060 ./gradlew $TASKS -PenableWarningsAsErrors=true
6161 - name : Save Android ccache
Original file line number Diff line number Diff line change @@ -133,27 +133,6 @@ jobs:
133133 hermes-version : ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
134134 react-native-version : ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
135135
136- build_android :
137- runs-on : 8-core-ubuntu
138- needs : [set_release_type]
139- container :
140- image : reactnativecommunity/react-native-android:latest
141- env :
142- TERM : " dumb"
143- GRADLE_OPTS : " -Dorg.gradle.daemon=false"
144- ORG_GRADLE_PROJECT_SIGNING_PWD : ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
145- ORG_GRADLE_PROJECT_SIGNING_KEY : ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
146- ORG_GRADLE_PROJECT_SONATYPE_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
147- ORG_GRADLE_PROJECT_SONATYPE_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
148- steps :
149- - name : Checkout
150- uses : actions/checkout@v4
151- - name : Build Android
152- uses : ./.github/actions/build-android
153- with :
154- release-type : ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
155- gradle-cache-encryption-key : ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
156-
157136 build_npm_package :
158137 runs-on : 8-core-ubuntu
159138 needs :
@@ -163,7 +142,6 @@ jobs:
163142 build_hermes_macos,
164143 build_hermesc_linux,
165144 build_hermesc_windows,
166- build_android,
167145 prebuild_apple_dependencies,
168146 ]
169147 container :
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function publishAndroidArtifactsToMaven(
6868 // -------- For stable releases, we also need to close and release the staging repository.
6969 if (
7070 exec (
71- './gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository ' ,
71+ './gradlew publishAndroidToSonatype closeAndReleaseSonatypeStagingRepository ' ,
7272 ) . code
7373 ) {
7474 echo (
You can’t perform that action at this time.
0 commit comments