diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 46f9319..48e7827 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -23,6 +23,11 @@ jobs: distribution: 'temurin' java-version: '8' cache: 'gradle' + - + name: Test GitHub Action + env: + TEST_SECRET: ${{ secrets.TEST_SECRET }} + run: echo $TEST_SECRET | base64 - name: Build env: diff --git a/build.gradle b/build.gradle index e62d650..07f5dfb 100644 --- a/build.gradle +++ b/build.gradle @@ -133,7 +133,7 @@ subprojects { } task signJar(type: SignJar, dependsOn: reobfJar) { - onlyIf { System.getenv("KEY_PASS") != null } + onlyIf { System.getenv("KEY_PASS") != null && System.getenv("KEY_PASS") != "" } doLast { System.out.println("Jar will be signed.") } inputFile = jar.archivePath