Skip to content

Commit

Permalink
[skip ci] Restore descriptions in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
burnoo committed Aug 5, 2024
1 parent c769bfd commit 7848d8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SONATYPE_DESCRIPTION: Created by GitHub Actions

- name: Publish artifacts to Sonatype
id: publish
Expand All @@ -60,6 +61,7 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_REPOSITORY_ID: ${{ steps.create-nexus-staging.outputs.repository_id }}
SONATYPE_DESCRIPTION: Closed by GitHub Actions

- name: Extract version from build.gradle.kts
id: extract_version
Expand Down
3 changes: 2 additions & 1 deletion scripts/create-nexus-staging-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ jsonOutput=$(
curl -s --request POST -u "$SONATYPE_USERNAME:$SONATYPE_PASSWORD" \
--url https://s01.oss.sonatype.org/service/local/staging/profiles/"${SONATYPE_STAGING_PROFILE_ID}"/start \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
--header 'Content-Type: application/json' \
--data '{ "data": {"description" : "'"$SONATYPE_DESCRIPTION"'"} }'
)

stagingRepositoryId=$(echo "$jsonOutput" | jq -r '.data.stagedRepositoryId')
Expand Down
2 changes: 1 addition & 1 deletion scripts/release-nexus-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ closingRepository=$(
--url https://s01.oss.sonatype.org/service/local/staging/bulk/close \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "data" : {"stagedRepositoryIds":["'"$SONATYPE_REPOSITORY_ID"'"] } }'
--data '{ "data" : {"stagedRepositoryIds":["'"$SONATYPE_REPOSITORY_ID"'"], "description":"'"$SONATYPE_DESCRIPTION"'" } }'
)

if [ ! -z "$closingRepository" ]; then
Expand Down

0 comments on commit 7848d8c

Please sign in to comment.