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 - +