From ff335fa75feb9bf0084b179a825ff0492e470c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Berg=20Glasius?= Date: Tue, 17 Sep 2024 14:48:22 +0200 Subject: [PATCH] Still debugging --- .github/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c4e915..cd54d7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,21 +43,17 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - name: Publish to Sonatype OSSRH - # if: ${{ false }} # prevent deploy + if: ${{ env.ACT }} # prevent deploy using gh act env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} - SECRING_FILE: ${{ secrets.SECRING_FILE }} - SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} - SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} - SIGNING_FILE: ${{ github.workspace }}/secring.pgp + SIGN_ARMORED_KEY: ${{ secrets.SIGN_AMORED_KEY }} + SIGN_PASSWORD: ${{ secrets.SIGN_PASSWORD }} RELEASE_VERSION: ${{ needs.get-version.outputs.version }} run: | - echo "${SECRING_FILE}" | base64 -d > "${SIGNING_FILE}" echo "Publishing Artifacts for $RELEASE_VERSION" (set -x; ./gradlew -Pversion="${RELEASE_VERSION}" publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon) - rm "${SIGNING_FILE}" bump-snapshot-version: runs-on: ubuntu-latest needs: [ get-version, release ] @@ -71,7 +67,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-java@v4 with: - java-version: 8 + java-version: 11 distribution: temurin - name: Set version in gradle.properties run: | @@ -97,7 +93,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-java@v4 with: - java-version: 8 + java-version: 11 distribution: temurin - uses: micronaut-projects/github-actions/export-gradle-properties@master id: asciidoctor