File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Build
33on :
44 [push]
55
6+ env :
7+ BUILD_VERSION : SNAPSHOT
8+
69jobs :
710 build :
811 name : Build and Test
@@ -26,14 +29,15 @@ jobs:
2629 - name : Export the build version to the environment and fix it as an ouput of this job
2730 id : setversion
2831 run : |
29- echo "::set-env name=BUILD_VERSION::$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)"
30- echo "::set-output name=version::${BUILD_VERSION}"
32+ v=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
33+ echo "::set-env name=BUILD_VERSION::${v}"
34+ echo "::set-output name=version::${v}"
3135 - name : Build and Test
3236 run : mvn -B install
33- - name : Upload snapshot artifact cryptomator-cli-XXX .jar
37+ - name : Upload snapshot artifact cryptomator-cli-${{ BUILD_VERSION }} .jar
3438 uses : actions/upload-artifact@v2
3539 with :
36- name : cryptomator-cli-${{ BUILD_VERSION } }.jar
40+ name : cryptomator-cli-${BUILD_VERSION}.jar
3741 path : target/cryptomator-cli-*.jar
3842
3943 release :
You can’t perform that action at this time.
0 commit comments