Skip to content

Commit

Permalink
Fix github actions publishing (temporarily disable finalize)
Browse files Browse the repository at this point in the history
Signed-off-by: solonovamax <[email protected]>
  • Loading branch information
solonovamax committed Sep 4, 2023
1 parent 25088a4 commit 3635267
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: windows-latest
needs: [ create-staging-repository ]
env:
ORG_GRADLE_PROJECT_repositoryId: ${{ steps.create-staging-repo.outputs.repository-id }}
ORG_GRADLE_PROJECT_repositoryId: ${{ needs.create-staging-repo.outputs.repository-id }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -67,7 +67,7 @@ jobs:
runs-on: macos-latest
needs: [ create-staging-repository ]
env:
ORG_GRADLE_PROJECT_repositoryId: ${{ steps.create-staging-repo.outputs.repository-id }}
ORG_GRADLE_PROJECT_repositoryId: ${{ needs.create-staging-repo.outputs.repository-id }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ create-staging-repository ]
env:
ORG_GRADLE_PROJECT_repositoryId: ${{ steps.create-staging-repo.outputs.repository-id }}
ORG_GRADLE_PROJECT_repositoryId: ${{ needs.create-staging-repo.outputs.repository-id }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -122,22 +122,22 @@ jobs:
publishJvmPublicationToSoloStudiosRepository publishJvmPublicationToSonatypeRepository \
publishJsPublicationToSoloStudiosRepository publishJsPublicationToSonatypeRepository
finalize:
runs-on: ubuntu-latest
needs: [ create-staging-repo, publish-windows, publish-mac, publish-linux ]
if: ${{ always() && needs.create-staging-repo.result == 'success' }}
steps:
- name: Discard
if: ${{ needs.publish-windows.result != 'success' || needs.publish-mac.result != 'success' || needs.publish-linux.result != 'success' }}
uses: nexus-actions/drop-nexus-staging-repo@59443053a1b36f5f71ede68776d73294bf4bfb5e
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.publish-windows.result == 'success' && needs.publish-mac.result == 'success' && needs.publish-linux.result == 'success' }}
uses: nexus-actions/release-nexus-staging-repo@f2b4c7f64ecec2cb0d24349182c1bbeda5c4c056
with:
username: ${{ secrets.NEXUS_ACTIONS_SONATYPE_USERNAME }}
password: ${{ secrets.NEXUS_ACTIONS_SONATYPE_PASSWORD }}
staging_repository_id: ${{ needs.create_staging_repository.outputs.repository_id }}
# finalize:
# runs-on: ubuntu-latest
# needs: [ create-staging-repo, publish-windows, publish-mac, publish-linux ]
# if: ${{ always() && needs.create-staging-repo.result == 'success' }}
# steps:
# - name: Discard
# if: ${{ needs.publish-windows.result != 'success' || needs.publish-mac.result != 'success' || needs.publish-linux.result != 'success' }}
# uses: nexus-actions/drop-nexus-staging-repo@59443053a1b36f5f71ede68776d73294bf4bfb5e
# with:
# username: ${{ secrets.SONATYPE_USERNAME }}
# password: ${{ secrets.SONATYPE_PASSWORD }}
# staging_repository_id: ${{ needs.create-staging-repo.outputs.repository-id }}
# - name: Release
# if: ${{ needs.publish-windows.result == 'success' && needs.publish-mac.result == 'success' && needs.publish-linux.result == 'success' }}
# uses: nexus-actions/release-nexus-staging-repo@f2b4c7f64ecec2cb0d24349182c1bbeda5c4c056
# with:
# username: ${{ secrets.SONATYPE_USERNAME }}
# password: ${{ secrets.SONATYPE_PASSWORD }}
# staging_repository_id: ${{ needs.create-staging-repo.outputs.repository-id }}

0 comments on commit 3635267

Please sign in to comment.