From 684672943219790a5878ceb6c017d8c92a98e171 Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Sun, 18 May 2025 19:40:43 +0000 Subject: [PATCH] .forgejo/workflows/dotnet.yaml aktualisiert --- .forgejo/workflows/dotnet.yaml | 50 ++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/dotnet.yaml b/.forgejo/workflows/dotnet.yaml index 6145609..fab7d50 100644 --- a/.forgejo/workflows/dotnet.yaml +++ b/.forgejo/workflows/dotnet.yaml @@ -46,14 +46,42 @@ jobs: - name: Packing Zip - run: Compress-Archive - WeeXnes\bin\Release\WeeXnes.exe, - WeeXnes\bin\Release\System.Drawing.Common.dll, - WeeXnes\bin\Release\Wpf.Ui.dll, - WeeXnes_UAC\bin\Release\WeeXnes_UAC.exe, - WeeXnes\bin\Release\DiscordRPC.dll, - WeeXnes\bin\Release\Newtonsoft.Json.dll, - Autostart\bin\Release\Autostart.exe, - WXPlugin\bin\Release\WXPlugin.dll, - Update\bin\Release\Update.exe - -CompressionLevel Optimal -DestinationPath packed.zip \ No newline at end of file + run: | + $zipName = "currentRelease_$env:PROJECT_VERSION.zip" + Compress-Archive -Path ` + WeeXnes\bin\Release\WeeXnes.exe, ` + WeeXnes\bin\Release\System.Drawing.Common.dll, ` + WeeXnes\bin\Release\Wpf.Ui.dll, ` + WeeXnes_UAC\bin\Release\WeeXnes_UAC.exe, ` + WeeXnes\bin\Release\DiscordRPC.dll, ` + WeeXnes\bin\Release\Newtonsoft.Json.dll, ` + Autostart\bin\Release\Autostart.exe, ` + WXPlugin\bin\Release\WXPlugin.dll, ` + Update\bin\Release\Update.exe ` + -CompressionLevel Optimal ` + -DestinationPath $zipName + Write-Output "Created zip: $zipName" + + - name: Prepare release directory + run: | + mkdir release + move currentRelease_$env:PROJECT_VERSION.zip release\ + + + - name: Create Git tag + run: | + git config user.name "WeeXnes" + git config user.email "weexnes@weexnes.dev" + git tag v$env:PROJECT_VERSION + git push origin v$env:PROJECT_VERSION + + - name: Upload to Forgejo + uses: actions/forgejo-release@v2.6.0 + with: + direction: upload + url: https://git.weexnes.dev/ + repo: WeeXnes/Cryptura + token: ${{ secrets.RELEASE_TOKEN }} + tag: v${{ steps.get_version.outputs.version }} + release-dir: release + release-notes: "Automated release for version ${{ steps.get_version.outputs.version }}" \ No newline at end of file