Skip to content

Commit

Permalink
ci: Fix asset name in download
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanty committed Dec 17, 2023
1 parent b4f7d0a commit 2e1b630
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release_new_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
- uses: actions/[email protected]
- name: Download Knope
env:
WINDOWS_ASSET_NAME: knope-x86_64-pc-windows-msvc
ASSET_NAME: knope-x86_64-pc-windows-msvc
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download --repo knope-dev/knope v${{ env.KNOPE_VERSION }} --pattern "knope-x86_64-pc-windows-msvc"
tar -xzf ${{ env.WINDOWS_ASSET_NAME }}.tgz
mv ${{ env.WINDOWS_ASSET_NAME }}/knope.exe tools/knope.exe
gh release download --repo knope-dev/knope v${{ env.KNOPE_VERSION }} --pattern "${{ env.ASSET_NAME }}.tgz"
tar -xzf ${{ env.ASSET_NAME }}.tgz
mv ${{ env.ASSET_NAME }}/knope.exe tools/knope.exe
- name: Update version in knope.nuspec
run: sed -i "s#<version>.*</version>#<version>${{ env.KNOPE_VERSION }}</version>#" knope.nuspec
- run: choco pack
Expand Down

0 comments on commit 2e1b630

Please sign in to comment.