File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 99 description : ' Version'
1010 required : false
1111
12+ permissions :
13+ contents : write
14+ packages : write
15+
1216env :
1317 JAVA_DIST : ' zulu'
1418 JAVA_VERSION : ' 22.0.2+9'
7882 - uses : actions/setup-java@v4
7983 with :
8084 java-version : ' 22'
81- distribution : ' temurin '
85+ distribution : ' zulu '
8286 - name : Set version
8387 run : mvn versions:set -DnewVersion=${{ needs.prepare.outputs.semVerStr }}
8488 - name : Run maven
@@ -124,7 +128,7 @@ jobs:
124128 ${JPACKAGE_OS_OPTS}
125129 - uses : actions/upload-artifact@v4
126130 with :
127- path : .\ target\ cryptomator-cli${{ matrix.binary-dir-suffix }}
131+ path : ./ target/ cryptomator-cli${{ matrix.binary-dir-suffix }}
128132 if-no-files-found : error
129133 - name : Zip binary for release
130134 if : startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
@@ -133,7 +137,7 @@ jobs:
133137 - name : Create detached GPG signature with key 615D449FE6E6A235
134138 run : |
135139 echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
136- echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a .\ cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
140+ echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a ./ cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
137141 env :
138142 GPG_PRIVATE_KEY : ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
139143 GPG_PASSPHRASE : ${{ secrets.RELEASES_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if [ -z "$JAVA_HOME" ]; then
1616fi
1717
1818# Check Java version
19- MIN_JAVA_VERSION=$( mvn help:evaluate " -Dexpression=jdk.version" -q -DforceStdout) :w
19+ MIN_JAVA_VERSION=$( mvn help:evaluate " -Dexpression=jdk.version" -q -DforceStdout)
2020JAVA_VERSION=$( " $JAVA_HOME /bin/java" -version | head -n1 | cut -d' ' -f2 | cut -d' .' -f1)
2121if [ " $JAVA_VERSION " -lt " $MIN_JAVA_VERSION " ]; then
2222 echo " Java version $JAVA_VERSION is too old. Minimum required version is $MIN_JAVA_VERSION "
You can’t perform that action at this time.
0 commit comments