Skip to content

Commit 38c04d3

Browse files
Updating ci preparing for initial 3.0.0-beta release
1 parent 01c0f57 commit 38c04d3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ jobs:
4747
distribution: 'temurin'
4848
java-version: '21'
4949
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
5053
- name: Package app-image
5154
run: |
52-
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 \
5357
-Djavafx.platform=mac-aarch64 \
5458
-Pmacos-app-image \
5559
-DskipDmg=${{ startsWith(github.ref, 'refs/tags/v') && 'false' || 'true' }} \

0 commit comments

Comments
 (0)