Skip to content

Commit

Permalink
github: fix choco artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Apr 14, 2024
1 parent a3ad84c commit 8dc92b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ jobs:
with:
path: cmd/anchor/dist/windows
key: windows-${{ env.sha_short }}
- name: Set env
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}"
- shell: pwsh
run: |
choco push --source https://push.chocolatey.org/ --api-key "$env:CHOCOLATEY_API_KEY" ./cmd/anchor/dist/windows/anchor.${{ github.ref }}.nupkg
choco push --source https://push.chocolatey.org/ --api-key "$env:CHOCOLATEY_API_KEY" cmd\anchor\dist\windows\anchor.${{ env.RELEASE_VERSION }}.nupkg
env:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}

0 comments on commit 8dc92b6

Please sign in to comment.