@@ -64,25 +64,30 @@ staging API compatibility service, which works with Filament's Gradle setup.
6464
6565-----
6666
67- ### 1\. Upload to the Staging API Compatibility Service
67+ ### 1\. Upload to the Central Publisher Portal
68+
69+ To upload the artifacts, it is important to run both of these Gradle tasks together in a single
70+ command. This ensures the staging repository is created and closed automatically.
6871
6972``` bash
7073cd android
71- ./gradlew publishToSonatype
74+ ./gradlew publishToSonatype closeSonatypeStagingRepository
7275```
7376
74- ### 2 \. Move the Repository to the Central Publisher Portal
77+ #### Troubleshooting: Manual Staging
7578
76- We have a script to automate this. It reads the ` sonatypeUsername ` and ` sonatypePassword ` from your
77- ` ~/.gradle/gradle.properties ` file.
79+ If you ran ` publishToSonatype ` by itself, the repository will remain open and won't appear in the
80+ portal correctly. You can fix this by running our automation script, which uses the
81+ ` sonatypeUsername ` and ` sonatypePassword ` from your ~ /.gradle/gradle.properties file:
7882
7983``` bash
8084python3 build/common/close-sonatype-staging-repository.py
8185```
8286
83- ### 3 \. Publish the Release on Sonatype
87+ ### 2 \. Publish the Release on Sonatype
8488
85- Navigate to [ Maven Central Repository Deployments] ( https://central.sonatype.com/publishing/deployments ) .
89+ Once the upload is successful, you must manually trigger the final release. Navigate to [ Maven
90+ Central Repository Deployments] ( https://central.sonatype.com/publishing/deployments ) .
8691
8792Here, you should see a new deployment with a ** Validated** status and all your artifacts listed. Click
8893the ** Publish** button to publish the artifacts. It typically takes around 5 minutes after clicking
0 commit comments