From e6c619744e214a7ec7b2e689b4ded059aa58bc0e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Mar 2026 02:40:15 +0000 Subject: [PATCH] ci: upload ZIP instead of MSI to Releases for both build and deploy workflows --- .github/workflows/build.yml | 7 ++++++- .github/workflows/deploy.yml | 26 ++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eb8bd4..41086fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,11 @@ jobs: name: Desktop Notes path: "Desktop Notes/Desktop Notes/bin/Release/**" + - name: Package Release as ZIP + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: Compress-Archive -Path "Desktop Notes/Desktop Notes/bin/Release/*" -DestinationPath "Desktop_Notes.zip" + shell: powershell + - name: Update latest Release if: github.event_name == 'push' && github.ref == 'refs/heads/master' uses: softprops/action-gh-release@v2 @@ -44,7 +49,7 @@ jobs: name: Latest Build prerelease: true make_latest: false - files: "Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi" + files: Desktop_Notes.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11b43eb..6d9b841 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,29 +29,23 @@ jobs: dotnet tool install --global wix --version 4.0.5 wix build Product.wxs -o "./Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi" - - name: Upload MSI as an artifact + - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Desktop Notes - path: "Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi" + path: "Desktop Notes/Desktop Notes/bin/Release/**" + + - name: Package Release as ZIP + run: Compress-Archive -Path "Desktop Notes/Desktop Notes/bin/Release/*" -DestinationPath "Desktop_Notes.zip" + shell: powershell - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref_name }} - release_name: Release ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} draft: false prerelease: false - - - name: Upload Release Asset - uses: actions/upload-release-asset@v1 + files: Desktop_Notes.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: "./Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi" - asset_name: Desktop_Notes.msi - asset_content_type: application/octet-stream