diff --git a/.github/workflows/build_and_release_github.yml b/.github/workflows/build_and_release_github.yml index 777a809..9e6a5d2 100644 --- a/.github/workflows/build_and_release_github.yml +++ b/.github/workflows/build_and_release_github.yml @@ -6,8 +6,7 @@ on: - '*' jobs: - createrelease: - name: createrelease + release: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') steps: @@ -38,9 +37,13 @@ jobs: env: GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }} - - name: Build and release package - run: ./gradlew clean build githubRelease + - name: Build package + run: ./gradlew clean build env: GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Release package + run: ./gradlew githubRelease + env: RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }} diff --git a/build.gradle b/build.gradle index 923a745..2f7fa3a 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ version gitVersion() // version set by the plugin, based on the Git tag description = 'Plug-in for Cryptomator to store vault passwords in KeePassXC' java.sourceCompatibility = JavaVersion.VERSION_17 -def releaseGradlePluginToken = System.getenv("RELEASE_GRADLE_PLUGIN_TOKEN") +def releaseGradlePluginToken = System.getenv("RELEASE_GRADLE_PLUGIN_TOKEN") ?: '' java { withSourcesJar()