From 280bdcc4fa930127a2d4ec4040211b50f9be7384 Mon Sep 17 00:00:00 2001 From: Mohsen Date: Fri, 3 Feb 2023 10:06:56 +0100 Subject: [PATCH] Add Publish CI flow (#2) --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000000..a47df79a5ed --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish Release + +on: + workflow_dispatch: + push: + branches: + - 'main' + +jobs: + publish_job: + name: Publish + runs-on: ubuntu-latest + continue-on-error: true + timeout-minutes: 20 + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Run Publish + env: + GPG_SIGNING_KEY_ID: ${{ secrets.GPG_SIGNING_KEY_ID }} + GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} + GPG_SIGNING_SECRET_KEY: ${{ secrets.GPG_SIGNING_SECRET_KEY }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + run: ./gradlew publishReleasePublicationToMavenRepository