We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c0f57 commit 38c04d3Copy full SHA for 38c04d3
1 file changed
.github/workflows/ci.yml
@@ -47,9 +47,13 @@ jobs:
47
distribution: 'temurin'
48
java-version: '21'
49
cache: 'maven'
50
+ - name: Compute app version from tag (if present)
51
+ if: startsWith(github.ref, 'refs/tags/')
52
+ run: echo "APP_VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
53
- name: Package app-image
54
run: |
- mvn -B -DskipTests \
55
+ if [ -n "${APP_VERSION:-}" ]; then MVN_VER_ARG="-Dfddtools.app.version=$APP_VERSION"; else MVN_VER_ARG=""; fi
56
+ mvn -B -DskipTests $MVN_VER_ARG \
57
-Djavafx.platform=mac-aarch64 \
58
-Pmacos-app-image \
59
-DskipDmg=${{ startsWith(github.ref, 'refs/tags/v') && 'false' || 'true' }} \
0 commit comments