From b24eac52ae20ec3907f0e8c6fd2aeff862d11755 Mon Sep 17 00:00:00 2001 From: Dimitrij Date: Fri, 8 Aug 2025 01:31:12 +0100 Subject: [PATCH] Update Build mR-NB.yml upd --- .github/workflows/Build mR-NB.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build mR-NB.yml b/.github/workflows/Build mR-NB.yml index e3eff5ca..98febdc6 100644 --- a/.github/workflows/Build mR-NB.yml +++ b/.github/workflows/Build mR-NB.yml @@ -40,11 +40,20 @@ jobs: shell: pwsh run: msbuild "$Env:GITHUB_WORKSPACE\mRemoteNG.sln" -p:Configuration="Release" -p:Platform=x64 /verbosity:minimal - - name: 07. Upload Artifact + - name: 07. Compress Release Output + shell: pwsh + run: | + Add-Type -AssemblyName System.IO.Compression.FileSystem + $source = "${{ github.workspace }}\mRemoteNG\bin\x64\Release\win-x64" + $destination = "${{ github.workspace }}\release-x64.zip" + if (Test-Path $destination) { Remove-Item $destination } + [System.IO.Compression.ZipFile]::CreateFromDirectory($source, $destination) + + - name: 08. Upload Artifact uses: actions/upload-artifact@v4 with: name: release-x64 - path: ${{ github.workspace }}\mRemoteNGInstaller\Installer\bin\x64\Release\en-US\ + path: ${{ github.workspace }}\release-x64.zip if-no-files-found: error Create-Release: @@ -57,12 +66,7 @@ jobs: - name: 02. Download Artifacts uses: actions/download-artifact@v4 - - name: 03. Zip Artifacts - shell: bash - run: | - zip -r release-x64.zip release-x64/ - - - name: 04. Create Release on GitHub + - name: 03. Create Release on GitHub shell: bash env: GH_TOKEN: ${{ github.token }}