diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4831eba..838acbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -120,6 +120,17 @@ jobs: MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + - name: POST Sonatype namespace + run: | + # https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#1-modify-your-ci-script + auth=$(echo -n "$MAVEN_USERNAME:$MAVEN_PASSWORD" | base64) + curl -X POST \ + -H "Authorization: Bearer $auth" \ + "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.epam.jsdmx" + env: + MAVEN_REPOSITORY: ${{ secrets.MAVEN_REPOSITORY }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} cleanup: name: Cleanup @@ -133,4 +144,4 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com - git push origin --delete workflow-$GITHUB_RUN_ID || true \ No newline at end of file + git push origin --delete workflow-$GITHUB_RUN_ID || true