.forgejo/workflows/dotnet.yaml aktualisiert
Some checks failed
Dotnet Build / build (push) Failing after 2m3s
Some checks failed
Dotnet Build / build (push) Failing after 2m3s
This commit is contained in:
parent
97f3d31eab
commit
6846729432
1 changed files with 39 additions and 11 deletions
|
@ -46,14 +46,42 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
- name: Packing Zip
|
- name: Packing Zip
|
||||||
run: Compress-Archive
|
run: |
|
||||||
WeeXnes\bin\Release\WeeXnes.exe,
|
$zipName = "currentRelease_$env:PROJECT_VERSION.zip"
|
||||||
WeeXnes\bin\Release\System.Drawing.Common.dll,
|
Compress-Archive -Path `
|
||||||
WeeXnes\bin\Release\Wpf.Ui.dll,
|
WeeXnes\bin\Release\WeeXnes.exe, `
|
||||||
WeeXnes_UAC\bin\Release\WeeXnes_UAC.exe,
|
WeeXnes\bin\Release\System.Drawing.Common.dll, `
|
||||||
WeeXnes\bin\Release\DiscordRPC.dll,
|
WeeXnes\bin\Release\Wpf.Ui.dll, `
|
||||||
WeeXnes\bin\Release\Newtonsoft.Json.dll,
|
WeeXnes_UAC\bin\Release\WeeXnes_UAC.exe, `
|
||||||
Autostart\bin\Release\Autostart.exe,
|
WeeXnes\bin\Release\DiscordRPC.dll, `
|
||||||
WXPlugin\bin\Release\WXPlugin.dll,
|
WeeXnes\bin\Release\Newtonsoft.Json.dll, `
|
||||||
Update\bin\Release\Update.exe
|
Autostart\bin\Release\Autostart.exe, `
|
||||||
-CompressionLevel Optimal -DestinationPath packed.zip
|
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 }}"
|
Loading…
Add table
Reference in a new issue