From d35903c462d7d79aad35ccb26375e3df66bb841c Mon Sep 17 00:00:00 2001 From: Kamil118 Date: Mon, 17 Aug 2026 13:46:36 +0200 Subject: [PATCH] Attempt 2 at github actions --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92eaa33..65eb87d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,9 @@ jobs: build-and-release: runs-on: windows-latest + permissions: + contents: write + steps: - name: Checkout Code uses: actions/checkout@v4 @@ -31,6 +34,11 @@ jobs: - name: Publish Artifacts arm run: dotnet publish -c Release -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o ./publish/arm + - name: Rename Executables by Architecture + run: | + Get-ChildItem -Path ./publish/x64/*.exe | Rename-Item -NewName { $_.BaseName + "-x64" + $_.Extension } + Get-ChildItem -Path ./publish/x86/*.exe | Rename-Item -NewName { $_.BaseName + "-x86" + $_.Extension } + Get-ChildItem -Path ./publish/arm64/*.exe | Rename-Item -NewName { $_.BaseName + "-arm64" + $_.Extension } # Step 6: Create a new GitHub Release and upload the ZIP file - name: Create GitHub Release uses: softprops/action-gh-release@v2