Skip to content

Commit

Permalink
fix distribute workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
storybehind committed Sep 1, 2024
1 parent f7a10e7 commit 0bb45f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/distribute-zboxcli-choco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Create .nuspec file
run: |
Set-Location "${{ env.PACKAGE_DIR }}"
Set-Location -Path "${{ env.PACKAGE_DIR }}"
$content = @"
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
Expand All @@ -79,10 +79,14 @@ jobs:
</files>
</package>
"@
New-Item -Path "${{ env.PACKAGE_ID }}.nuspec" -ItemType File -Force
Set-Content -Path "${{ env.PACKAGE_ID }}.nuspec" -Value $content
- name: Pack Chocolatey Package
run: |
Get-Location
Get-ChildItem "${{ env.PACKAGE_DIR }}"
choco pack ${{ env.PACKAGE_ID }}.nuspec
- name: Push Chocolatey Package
Expand Down

0 comments on commit 0bb45f6

Please sign in to comment.