Skip to content

Commit

Permalink
inject curl command directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thebehera committed Jan 7, 2024
1 parent 474a631 commit 25d4fcd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/merged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
repository_id: ${{ steps.create.outputs.repository_id }}
steps:
- id: create
uses: nexus-actions/[email protected]
with:
username: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
password: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
staging_profile_id: ${{ secrets.SONATYPE_PROFILE_ID }}
base_url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
description: ${{ github.repository }}/${{ github.workflow }}#${{ github.run_number }}
profileId: ${{ secrets.SONATYPE_PROFILE_ID }}
run: |
curl -s --request POST -u "$username:$password" \
--url https://oss.sonatype.org/service/local/staging/profiles/"$profileId"/start \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "data": {"description" : "Buffer"} }'
macos:
needs: create-staging-repository
runs-on: macOS-latest
Expand Down

0 comments on commit 25d4fcd

Please sign in to comment.