From 890ea7724609f3202e97e54d7a78bbfa8d58962f Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 21 Aug 2020 12:48:59 +0200 Subject: [PATCH] Update webassembly.yml --- .github/workflows/webassembly.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webassembly.yml b/.github/workflows/webassembly.yml index 7db3142b..7356c4f0 100644 --- a/.github/workflows/webassembly.yml +++ b/.github/workflows/webassembly.yml @@ -11,7 +11,8 @@ jobs: runs-on: windows-latest env: - RELEASE_NAME: raylib-3.1_wasm + VERSION: ${{ github.event.release.tag_name }} + RELEASE_NAME: raylib-${{ github.event.release.tag_name }}_webassembly steps: - name: Checkout @@ -32,6 +33,13 @@ jobs: mkdir include mkdir lib cd ../.. + + - name: Setup Release Version + run: | + echo "::set-env name=RELEASE_NAME::raylib-${{ github.event.release.tag_name }}_webassembly" + echo "::set-env name=VERSION_SHORT::${VERSION//.}" + shell: bash + if: github.event_name == 'release' && github.event.action == 'published' - name: Build Library run: |