From a4eee6607638c842eaac9be2d62cc366ae064554 Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Fri, 13 Dec 2024 09:45:03 +0800 Subject: [PATCH] pull secrets to env vars --- .github/workflows/on_release_created.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on_release_created.yml b/.github/workflows/on_release_created.yml index 1802346..47a35ec 100644 --- a/.github/workflows/on_release_created.yml +++ b/.github/workflows/on_release_created.yml @@ -18,7 +18,13 @@ jobs: distribution: 'adopt' - name: Publish - run: ./gradlew clean publish + env: + OSSRH_USER: ${{ secrets.OSSRH_USER }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} + GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} + run: | + ./gradlew clean publish - name: Print test results if: success() || failure()