diff --git a/.github/workflows/publish-plugin.yaml b/.github/workflows/publish-plugin.yaml index 6057d84a..3907519b 100644 --- a/.github/workflows/publish-plugin.yaml +++ b/.github/workflows/publish-plugin.yaml @@ -33,10 +33,9 @@ jobs: env: SKIE_REPLACEMENT_STRING: ${{ secrets.SKIE_REPLACEMENT_STRING }} - name: Publish to Maven Central - uses: gradle/gradle-build-action@v2.4.2 - with: - arguments: 'publishToSonatype closeAndReleaseSonatypeStagingRepository' - build-root-directory: SKIE + run: | + ./publish.sh + working-directory: SKIE env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} diff --git a/SKIE/publish.sh b/SKIE/publish.sh old mode 100644 new mode 100755 index 655a6993..d22e085d --- a/SKIE/publish.sh +++ b/SKIE/publish.sh @@ -1,9 +1,7 @@ set -xe -export RELEASE_VERSION=0.9.0 - ./gradlew :initializeSonatypeStagingRepository ./gradlew findSonatypeStagingRepository -x initializeSonatypeStagingRepository publishToSonatype -./gradlew :findSonatypeStagingRepository -x initializeSonatypeStagingRepository :closeSonatypeStagingRepository +./gradlew :findSonatypeStagingRepository -x initializeSonatypeStagingRepository :closeAndReleaseSonatypeStagingRepository