From 19f8bb12eeb6720e46ad28fbf4ecc46196f578df Mon Sep 17 00:00:00 2001 From: Robert Panzer Date: Thu, 26 May 2022 16:58:15 +0200 Subject: [PATCH] Add Github Actions workflow for building and publishing releases --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..b51f0787d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +name: Release + +on: workflow_dispatch + +env: + ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEY_ID }} + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} + ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSS_SONATYPE_USERNAME }} + ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSS_SONATYPE_PASSWORD }} + +jobs: + release: + environment: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + - name: Build + run: | + unset GEM_PATH GEM_HOME JRUBY_OPTS + ./gradlew --no-daemon clean build + ./gradlew --no-daemon publishToSonatype closeSonatypeStagingRepository