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 1818
1919 runs-on : ubuntu-latest
2020
21+ env :
22+ version : 1.2.${{ github.run_number }}
23+
2124 steps :
2225 - uses : actions/checkout@v3
2326
@@ -35,13 +38,13 @@ jobs:
3538 languages : ' java'
3639
3740 - name : Build
38- run : mvn -V -B clean verify org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage
41+ run : mvn -V -B clean verify org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage -Dproject.version=${{ env.version }}-SNAPSHOT
3942
4043 - name : Upload Build Artifact
4144 uses : actions/upload-artifact@v3
4245 with :
43- name : KeepTime
44- path : /home/runner/work/KeepTime/KeepTime/target/keeptime- *-bin.zip
46+ name : KeepTime-${{ env.version }}
47+ path : /home/runner/work/KeepTime/KeepTime/target/*-bin.zip
4548
4649 - name : Analyze
4750 env :
Original file line number Diff line number Diff line change 55
66 <groupId >de.doubleslash</groupId >
77 <artifactId >keeptime</artifactId >
8- <version >1.2.0-SNAPSHOT </version >
8+ <version >${project.version} </version >
99 <packaging >jar</packaging >
1010
1111 <name >KeepTime</name >
3232 </parent >
3333
3434 <properties >
35+ <project .version>1.2.0-SNAPSHOT</project .version>
3536 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
3637 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
3738 <maven .compiler.source>11</maven .compiler.source>
You can’t perform that action at this time.
0 commit comments