Skip to content

Commit

Permalink
Fix publishing finalize step
Browse files Browse the repository at this point in the history
  • Loading branch information
Shabinder committed Jun 8, 2024
1 parent ca17d82 commit c88fee7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ jobs:
if: ${{ always() && needs.create_staging_repository.result == 'success' }}
steps:
- name: Discard
if: ${{ needs.macos.result != 'success' || needs.windows.result != 'success' }}
if: ${{ needs.macos.result != 'success' }}
uses: nexus-actions/drop-nexus-staging-repo@main
with:
base_url: https://s01.oss.sonatype.org/service/local/
username: ${{ secrets.NEXUS_ACTIONS_SONATYPE_USERNAME }}
password: ${{ secrets.NEXUS_ACTIONS_SONATYPE_PASSWORD }}
staging_repository_id: ${{ needs.create_staging_repository.outputs.repository-id }}
- name: Release
if: ${{ needs.macos.result == 'success' && needs.windows.result == 'success' }}
if: ${{ needs.macos.result == 'success' }}
uses: nexus-actions/release-nexus-staging-repo@main
with:
base_url: https://s01.oss.sonatype.org/service/local/
Expand Down

0 comments on commit c88fee7

Please sign in to comment.