.forgejo/workflows/dotnet.yaml aktualisiert
Some checks failed
Dotnet Build / build (push) Failing after 2m7s

This commit is contained in:
WeeXnes 2025-05-18 20:06:06 +00:00
parent e69218c791
commit 3e2ed4b627

View file

@ -83,7 +83,7 @@ jobs:
$tag = "$env:PROJECT_VERSION" $tag = "$env:PROJECT_VERSION"
$fileName = "currentRelease_$tag.zip" $fileName = "currentRelease_$tag.zip"
$filePath = "release/$fileName" $filePath = "release/$fileName"
$apiUrl = "https://git.weexnes.dev/api/v1/repos/WeeXnes/WeeXnesSuite/releases/tags/$tag" $apiUrl = "https://git.weexnes.dev/api/v1/repos/WeeXnes/WeexnesSuite/releases/tags/$tag"
$release = Invoke-RestMethod -Uri $apiUrl -Headers @{ Authorization = "token $env:RELEASE_TOKEN" } $release = Invoke-RestMethod -Uri $apiUrl -Headers @{ Authorization = "token $env:RELEASE_TOKEN" }
$uploadUrl = $release.upload_url -replace "\{\?name,label\}", "?name=$fileName" $uploadUrl = $release.upload_url -replace "\{\?name,label\}", "?name=$fileName"
@ -92,4 +92,4 @@ jobs:
-Headers @{ Authorization = "token $env:RELEASE_TOKEN" } ` -Headers @{ Authorization = "token $env:RELEASE_TOKEN" } `
-Method Post ` -Method Post `
-ContentType "application/zip" ` -ContentType "application/zip" `
-InFile $filePath -InFile $filePath