Browse Source

Workflow: zip command missing

Daniel Chalmers 9 tháng trước cách đây
mục cha
commit
4b098701be
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      .github/actions/prepare-for-release/action.yml

+ 8 - 2
.github/actions/prepare-for-release/action.yml

@@ -23,16 +23,22 @@ runs:
       shell: bash
       run: dotnet test
 
-    - name: Publish
+    - name: Create Binaries
       shell: bash
       run: |
         dotnet tool install --global wix --version 4.0.6
         for arch in ${{ inputs.archs }}; do
           dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$arch" -c Release --os win --arch $arch -p:Version=${{ inputs.version }}
           wix build Product.wxs -d MainExeSource="publish/$arch/DesktopClock.exe" -o "publish/$arch/DesktopClock-installer-${{ inputs.version }}-${arch}.msi"
-          zip "publish/$arch/DesktopClock-portable-${{ inputs.version }}-${arch}.zip" "publish/$arch/DesktopClock.exe"
         done
 
+    - name: Create Portable ZIPs
+      shell: pwsh
+      run: |
+        foreach ($arch in "${{ inputs.archs }}".Split(' ')) {
+          Compress-Archive -Path "publish/$arch/DesktopClock.exe" -DestinationPath "publish/$arch/DesktopClock-portable-${{ inputs.version }}-$arch.zip"
+        }
+
     - uses: actions/upload-artifact@v4
       with:
         path: |