From a9f66640796a40bbd32a6243fb6253c712630632 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Wed, 25 Sep 2024 18:07:33 +0200 Subject: [PATCH] chore: ci --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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