Skip to content

Commit b9c229b

Browse files
committed
Merge branch 'release/0.5.0'
2 parents 4a7544b + 5369d4d commit b9c229b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
1212
outputs:
1313
artifactVersion: ${{ steps.setversion.outputs.version }}
14-
env:
15-
BUILD_VERSION: SNAPSHOT
1614
steps:
1715
- uses: actions/checkout@v2
1816
- uses: actions/setup-java@v1
@@ -27,18 +25,17 @@ jobs:
2725
- name: Ensure to use tagged version
2826
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} # use shell parameter expansion to strip of 'refs/tags'
2927
if: startsWith(github.ref, 'refs/tags/')
30-
- name: Export the project version to the job environment and fix it as an ouput of this job
28+
- name: Output project version
3129
id: setversion
3230
run: |
3331
BUILD_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
34-
echo "${BUILD_VERSION}" >> $GITHUB_ENV
35-
echo "::set-output name=artifactVersion::${BUILD_VERSION}"
32+
echo "::set-output name=version::${BUILD_VERSION}"
3633
- name: Build and Test
3734
run: mvn -B install
38-
- name: Upload snapshot artifact cryptomator-cli-${{ env.BUILD_VERSION }}.jar
35+
- name: Upload artifact cryptomator-cli-${{ steps.setversion.outputs.version }}.jar
3936
uses: actions/upload-artifact@v2
4037
with:
41-
name: cryptomator-cli-${{ env.BUILD_VERSION }}.jar
38+
name: cryptomator-cli-${{ steps.setversion.outputs.version }}.jar
4239
path: target/cryptomator-cli-*.jar
4340

4441
release:

0 commit comments

Comments
 (0)