Skip to content

Commit

Permalink
When running choco install pack --source <package> we need to point to a
Browse files Browse the repository at this point in the history
folder instead of a *.nupkg package

This should fix the issue:

The path 'D:\a\pack\pack\chocolatey\pack.0.32.1.nupkg' for the selected source could not be resolved.
 pack not installed. The package was not found with the source(s) listed.

Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed Nov 17, 2023
1 parent 2070b50 commit ae7d9ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/delivery-chocolatey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
return updatedTag;
- name: Setup working dir
run: |
mkdir ${{ env.CHOCO_PATH }}
mkdir -p ${{ env.CHOCO_PATH }}/source
cp -r .github/workflows/delivery/chocolatey/. ${{ env.CHOCO_PATH }}/
ls -R ${{ env.CHOCO_PATH }}
- name: Download and unzip Pack (Windows)
Expand Down Expand Up @@ -69,18 +69,18 @@ jobs:
- name: build-release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: pack ${{ env.CHOCO_PATH }}/pack.nuspec --outputdirectory ${{ env.CHOCO_PATH}}
args: pack ${{ env.CHOCO_PATH }}/pack.nuspec --outputdirectory ${{ env.CHOCO_PATH}}/source
- name: list files
run: |
ls ${{ env.CHOCO_PATH }}
ls ${{ env.CHOCO_PATH }}/tools
- name: Test Release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install pack -s ${{ env.CHOCO_PATH }}/pack.${{ env.PACK_VERSION }}.nupkg
args: install pack -s ${{ env.CHOCO_PATH }}/source
- name: Ensure Pack Installed
run: pack help
- name: Upload Release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: push ${{ env.CHOCO_PATH }}/pack.${{ env.PACK_VERSION }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.CHOCO_KEY }}
args: push ${{ env.CHOCO_PATH }}/source/pack.${{ env.PACK_VERSION }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.CHOCO_KEY }}

0 comments on commit ae7d9ca

Please sign in to comment.