From d4c89c137dabbb889d0e282a8bc537099479d259 Mon Sep 17 00:00:00 2001 From: marc-adaptive Date: Mon, 29 Jul 2024 09:55:57 -0400 Subject: [PATCH] [Build] Revert accidental merge --- .github/workflows/publish.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 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 000000000..9294ad5fe --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,46 @@ +name: Publish a release to the Maven Central Repository + +on: + repository_dispatch: + types: [publish_artifacts] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail' + +jobs: + build: + runs-on: ubuntu-22.04 + name: Release task + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.client_payload.gitRef }} + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Cache Gradle wrappers + uses: actions/cache@v4 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} + - name: Setup java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 8 + - name: Publish a release + run: ./gradlew publish + env: + SIGNING_GPG_SECRET_KEY: ${{ secrets.signingKey }} + SIGNING_GPG_PASSWORD: ${{ secrets.signingPassword }} + OSSRH_USERNAME: ${{ secrets.ossrhUsername }} + OSSRH_PASSWORD: ${{ secrets.ossrhPassword }} \ No newline at end of file