Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed May 22, 2024
1 parent 2491692 commit 54e85c7
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ concurrency:
cancel-in-progress: false

jobs:
create_staging_repository:
if: github.repository == 'whyoleg/cryptography-kotlin'
runs-on: ubuntu-latest
name: Create staging repository
outputs:
repository_id: ${{ steps.create.outputs.repository_id }}
steps:
- id: create
uses: nexus-actions/create-nexus-staging-repo@v1
with:
username: ${{secrets.sonatypeUsername}}
password: ${{secrets.sonatypePassword}}
staging_profile_id: ${{secrets.sonatypeProfileId}}
description: release/${{ github.ref_name }}#${{ github.run_number }}

publish:
runs-on: macos-14
needs: [ create_staging_repository ]
Expand All @@ -36,13 +21,11 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.signingPassword}}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{secrets.sonatypeUsername}}
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.sonatypePassword}}
ORG_GRADLE_PROJECT_sonatypeRepositoryId: ${{needs.create_staging_repository.outputs.repository_id}}

- name: Publish release to Maven Central
run: ./gradlew publishAllPublicationsToMavenCentralRepository -Pversion=${{ github.ref_name }}
run: ./gradlew publishAllPublicationsToMavenCentralRepository -Pversion=${{ github.ref_name }} --no-configuration-cache
env:
ORG_GRADLE_PROJECT_signingKey: ${{secrets.signingKey}}
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.signingPassword}}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{secrets.sonatypeUsername}}
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.sonatypePassword}}
ORG_GRADLE_PROJECT_sonatypeRepositoryId: ${{needs.create_staging_repository.outputs.repository_id}}

0 comments on commit 54e85c7

Please sign in to comment.