diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbe468a..ff7fda0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,3 +24,15 @@ jobs: run: | NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3) echo "new_version=${NEW_VERSION}" >> $GITHUB_OUTPUT + + - name: Publish package + id: publish_package + uses: gradle/gradle-build-action@v2.9.0 + with: + arguments: -Pversion=${{ steps.new_version.outputs.new_version }} publish closeAndReleaseStagingRepository + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} + OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \ No newline at end of file