fix: added --fail flag to prevent non-success HTTP responses cause the step to fail

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Zihlu Wang
2025-05-05 13:53:51 +08:00
committed by GitHub
parent f1d7d0f245
commit fe9b47fc1f
@@ -72,7 +72,7 @@ jobs:
- name: Create Deployment on Central Publisher Portal
run: |
curl -X 'POST' \
curl --fail -X 'POST' \
'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.onixbyte?publishing_type=user_managed' \
-H 'accept: */*' \
-H 'Authorization: Bearer ${{ secrets.MAVEN_PORTAL_TOKEN }}' \