Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Jan 16, 2025
1 parent dd9839e commit 2457176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build_and_release_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- '*'

jobs:
createrelease:
name: createrelease
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2457176

Please sign in to comment.