Skip to content

Commit

Permalink
Update publish.yml with explicit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shabinder authored May 28, 2024
1 parent 70bc258 commit 0f76cc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
repository_id: ${{ steps.create.outputs.repository_id }}
steps:
- id: create
uses: nexus-actions/create-nexus-staging-repo@1.3.0
uses: nexus-actions/create-nexus-staging-repo@v1.3.0
with:
base_url: https://s01.oss.sonatype.org/service/local/
description: ${{ github.repository }}/${{ github.workflow }}#${{ github.run_number }}
Expand Down Expand Up @@ -66,16 +66,16 @@ jobs:
steps:
- name: Discard
if: ${{ needs.macos.result != 'success' || needs.windows.result != 'success' }}
uses: nexus-actions/drop-nexus-staging-repo@main
uses: nexus-actions/drop-nexus-staging-repo@v1.1.0
with:
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' }}
uses: nexus-actions/release-nexus-staging-repo@main
uses: nexus-actions/release-nexus-staging-repo@v1.3.0
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 }}
staging_repository_id: ${{ needs.create_staging_repository.outputs.repository_id }}

0 comments on commit 0f76cc2

Please sign in to comment.