Add workaround to get tagged version in GitHub workflow script

This commit is contained in:
Joseph Henry
2021-05-18 23:03:56 -07:00
parent 0e2f5b6f1e
commit 4bad93c95b
2 changed files with 13 additions and 3 deletions

View File

@@ -15,6 +15,13 @@ jobs:
- name: Install JDK
run: sudo apt install default-jdk
- name: Build
run: ./build.sh host-jar "release"
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build
run: PKG_VER_TAG=$RELEASE_VERSION ./build.sh host-jar "release"
- uses: actions/upload-artifact@v2
with:
path: dist