From 9b155473d8a66d96f558b8a3c40990c04c6e08f3 Mon Sep 17 00:00:00 2001 From: unclshura Date: Sat, 16 May 2026 19:20:24 +0100 Subject: [PATCH] Build actions fixed. Publishing zip. --- .github/workflows/publish.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0d07051..2a4b6f6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,9 +2,9 @@ name: Build and Publish on: push: - branches: [ "main" ] + branches: [ "master" ] pull_request: - branches: [ "main" ] + branches: [ "master" ] jobs: build: @@ -34,8 +34,20 @@ jobs: GITHUB_SHA: ${{ github.sha }} run: dotnet publish -c Release -r win-x64 --self-contained true --no-build + - name: Create ZIP + shell: pwsh + run: | + $publish = "bin/Release/net10.0/win-x64/publish" + $version = (Select-String -Path "$publish\*.deps.json" -Pattern '"version":').Line.Split('"')[3] + $zip = "splitter-win-x64-$version-${{ github.run_number }}.zip" + + if (Test-Path $zip) { Remove-Item $zip } + Compress-Archive -Path "$publish/*" -DestinationPath $zip + + Write-Host "Created $zip" + - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: splitter-win-x64 - path: bin/Release/net10.0/win-x64/publish/ + path: splitter-win-x64-*.zip