diff --git a/.github/workflows/build_and_release_github.yml b/.github/workflows/build_and_release_github.yml index 72d8e0b..777a809 100644 --- a/.github/workflows/build_and_release_github.yml +++ b/.github/workflows/build_and_release_github.yml @@ -38,14 +38,9 @@ jobs: env: GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }} - - 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 + - name: Build and release package + run: ./gradlew clean build githubRelease env: GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }} diff --git a/.github/workflows/build_develop.yml b/.github/workflows/build_develop.yml index 3d23aac..4a5fb08 100644 --- a/.github/workflows/build_develop.yml +++ b/.github/workflows/build_develop.yml @@ -1,4 +1,4 @@ -name: Java CI with Maven +name: Java CI with Gradle on: push: @@ -41,3 +41,4 @@ jobs: env: GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 25881c6..3821fff 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -81,6 +81,8 @@ jobs: - name: Compile with Gradle without Build Scan if: ${{ matrix.language == 'java' && github.repository_owner != 'gradle' }} run: ./gradlew --init-script .github/workflows/codeql-analysis.init.gradle -S testClasses + env: + RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }} - name: Cleanup Gradle Daemons run: ./gradlew --stop diff --git a/README.md b/README.md index 725a9d8..7b5cd9a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # keepassxc-cryptomator ![keepassxc-cryptomator](keepassxc-cryptomator.svg) -[![Java CI with Maven](https://github.com/purejava/keepassxc-cryptomator/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/purejava/keepassxc-cryptomator/actions?query=workflow%3A%22Java+CI+with+Maven%22) +[![Java CI with Gradle](https://github.com/purejava/keepassxc-cryptomator/workflows/Java%20CI%20with%20Gradle/badge.svg)](https://github.com/purejava/keepassxc-cryptomator/actions?query=workflow%3A%22Java+CI+with+Gradle%22) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f092de6bfd99450f8a9a2766ed01c3c1)](https://app.codacy.com/gh/purejava/keepassxc-cryptomator?utm_source=github.com&utm_medium=referral&utm_content=purejava/keepassxc-cryptomator&utm_campaign=Badge_Grade_Settings) [![GitHub Release](https://img.shields.io/github/v/release/purejava/keepassxc-cryptomator)](https://github.com/purejava/keepassxc-cryptomator/releases) [![License](https://img.shields.io/github/license/purejava/keepassxc-cryptomator.svg)](https://github.com/purejava/keepassxc-cryptomator/blob/master/LICENSE)