Skip to content

Commit 17a43a3

Browse files
author
Armin Schrenk
committed
Updating github actions workflow "build":
* adding workflow wide version info
1 parent 5e897e8 commit 17a43a3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build
33
on:
44
[push]
55

6+
env:
7+
BUILD_VERSION: SNAPSHOT
8+
69
jobs:
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:

0 commit comments

Comments
 (0)