@@ -71,31 +71,16 @@ jobs:
7171 native-image-job-reports : ' true'
7272 cache : ' maven'
7373
74- - name : Build Native Binary
74+ - name : Set Maven Version
75+ run : ./mvnw -B versions:set -DnewVersion="${{ github.event.inputs.version || github.ref_name }}" -DgenerateBackupPoms=false
76+
77+ - name : Build and Install Project
78+ run : ./mvnw -B clean install -DskipTests
79+
80+ - name : Build Distribution
7581 working-directory : jmolecules-cli
7682 run : ../mvnw -B -Pdist clean package
7783
78- - name : Create Archive (Unix)
79- if : matrix.platform != 'windows'
80- working-directory : jmolecules-cli/target
81- run : |
82- mkdir -p distributions bin completion
83- cp jm bin/
84- cp jm.completion completion/
85- tar -czf distributions/jm-${{ github.event.inputs.version || github.ref_name }}-${{ matrix.artifact-suffix }}.tar.gz bin/jm completion/jm.completion
86-
87- - name : Create Archive (Windows)
88- if : matrix.platform == 'windows'
89- working-directory : jmolecules-cli/target
90- shell : pwsh
91- run : |
92- New-Item -ItemType Directory -Force -Path distributions
93- New-Item -ItemType Directory -Force -Path bin
94- New-Item -ItemType Directory -Force -Path completion
95- Copy-Item jm.exe -Destination bin/
96- Copy-Item jm.completion -Destination completion/
97- Compress-Archive -Path bin/jm.exe,completion/jm.completion -DestinationPath distributions/jm-${{ github.event.inputs.version || github.ref_name }}-${{ matrix.artifact-suffix }}.zip
98-
9984 - name : Upload Artifact
10085 uses : actions/upload-artifact@v4
10186 with :
0 commit comments