Skip to content

Commit

Permalink
ci: fix choco
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Mayson committed Jul 27, 2023
1 parent 8a3e5cd commit 13d3695
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download Linux x64
uses: actions/download-artifact@v3
with:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/dist/hemtt.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
</metadata>
<files>
<!-- this section controls what actually gets packaged into the Chocolatey package -->
<file src="..\..\target\release\hemtt.exe" target="." />
<file src="..\..\release\hemtt.exe" target="." />
</files>
</package>

0 comments on commit 13d3695

Please sign in to comment.