diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index e03c516..2ac3e27 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -6,11 +6,7 @@ on: jobs: publish-release: - strategy: - matrix: - os: [macOS-latest, windows-latest, ubuntu-latest] - - runs-on: ${{matrix.os}} + runs-on: ubuntu-latest steps: - name: Checkout latest code @@ -25,7 +21,4 @@ jobs: ${{ runner.os }}-gradle- - name: Publish artifact - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: ./gradlew -Pversion="${{github.event.release.tag_name}}" -PcurrentOs=${{ runner.os }} -Pbintray_user=${{secrets.BINTRAY_USER}} -Pbintray_key=${{secrets.BINTRAY_KEY}} bintrayUpload + run: ./gradlew publishAllPublicationsToSonatypeStagingRepository -Pversion="${{github.event.release.tag_name}}" -Psigning.base64.secretKey="${{secrets.SIGNING_BASE_64_SECRET_KEY}}" -Psigning.password="${{secrets.SIGNING_PASSWORD}}" -Psonatype.username="${{secrets.SONATYPE_USERNAME}}" -Psonatype.password="${{secrets.SONATYPE_PASSWORD}}"