From 13d369590b5ed71affb202a0a2aa95df6eb956c6 Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Wed, 26 Jul 2023 18:35:44 -0600 Subject: [PATCH] ci: fix choco --- .github/workflows/build.yaml | 9 ++++++++- bin/dist/hemtt.nuspec | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6de35ec3..ee43eac7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -111,6 +111,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Download Linux x64 uses: actions/download-artifact@v3 with: @@ -131,10 +132,16 @@ jobs: run: | cd release && zip windows-x64.zip hemtt.exe && rm hemtt.exe + - 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 with: - args: pack bin/dist/hemtt.nuspec --version ${GITHUB_REF_NAME#v} --outputdirectory release + args: pack bin/dist/hemtt.nuspec --version ${{ env.VERSION }} --outputdirectory release - name: Release uses: softprops/action-gh-release@v1 diff --git a/bin/dist/hemtt.nuspec b/bin/dist/hemtt.nuspec index 10734b99..b16fd0cd 100644 --- a/bin/dist/hemtt.nuspec +++ b/bin/dist/hemtt.nuspec @@ -73,6 +73,6 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe - +