diff --git a/.github/workflows/maven-publish-android.yml b/.github/workflows/maven-publish-android.yml
index f83f65c7..ce1ce019 100644
--- a/.github/workflows/maven-publish-android.yml
+++ b/.github/workflows/maven-publish-android.yml
@@ -112,7 +112,7 @@ jobs:
echo "GPG_TTY=${{ env.GPG_TTY }}"
- name: Setup the settings file for ossrh server
- run: echo " ossrh ${{secrets.OSSRH_USER}} ${{secrets.OSSRH_SECRET}} ossrh true gpg2 ${{secrets.GPG_SECRET}} allow-snapshots true snapshots-repo https://central.sonatype.com/repository/maven-snapshots/ false true releases-repo https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/ true false danubetech-maven-public https://repo.danubetech.com/repository/maven-public/ sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+ run: echo " ossrh ${{secrets.OSSRH_USER}} ${{secrets.OSSRH_SECRET}} ossrh true gpg2 ${{secrets.GPG_SECRET}} allow-snapshots true snapshots-repo https://central.sonatype.com/repository/maven-snapshots/ false true releases-repo https://ossrh-staging-api.central.sonatype.com/io/mosip/ true false danubetech-maven-public https://repo.danubetech.com/repository/maven-public/ sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
- name: Build check for MOSIP License
run: |
@@ -157,7 +157,14 @@ jobs:
run: |
cd ${{ inputs.SERVICE_LOCATION }}/${{ inputs.ANDROID_SERVICE_LOCATION }}
./gradlew publish -Psigning.gnupg.keyName=${{env.KEY_ID}} -Psigning.gnupg.passphrase=${{secrets.GPG_SECRET}}
-
+
+ - name: Trigger staging repository creation
+ if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name == 'workflow_dispatch' }}"
+ run: |
+ curl -X POST \
+ -H "Authorization: Bearer ${{ secrets.OSSRH_TOKEN }}" \
+ https://ossrh-staging-api.central.sonatype.com/service/local/staging/manual/upload/defaultRepository/io/mosip
+
- name: Publish to Slack
uses: 8398a7/action-slack@v3
with: