From ae7d9ca1eacaf9b31340bde45347d9b04eea9340 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Fri, 17 Nov 2023 09:24:32 -0500 Subject: [PATCH] When running choco install pack --source we need to point to a 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 --- .github/workflows/delivery-chocolatey.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/delivery-chocolatey.yml b/.github/workflows/delivery-chocolatey.yml index 6531d3819c..d7feb60f8d 100644 --- a/.github/workflows/delivery-chocolatey.yml +++ b/.github/workflows/delivery-chocolatey.yml @@ -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) @@ -69,7 +69,7 @@ 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 }} @@ -77,10 +77,10 @@ jobs: - 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 }}