From 48f6d53ec5670cb63f2429c0dbeebfaf713762b0 Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Wed, 26 Jul 2023 16:36:11 -0600 Subject: [PATCH] try env --- .github/workflows/build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dd3a65d9..d7e3ed69 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -128,10 +128,18 @@ jobs: run: | cd release && zip linux-x64.zip hemtt && rm hemtt + - name: Create Release Version + run: | + VERSION=${GITHUB_REF_NAME#v} + echo Version: $VERSION + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Pack for Chocolatey uses: crazy-max/ghaction-chocolatey@v2 + env: + VERSION: ${{ env.GITHUB_REF_NAME }} with: - args: pack bin/dist/hemtt.nuspec --version ${GITHUB_REF_NAME#v} --outputdirectory release + args: pack bin/dist/hemtt.nuspec --version ${VERSION#v} --outputdirectory release - name: Zip Windows x64 run: |