.forgejo/workflows/dotnet.yaml aktualisiert
Some checks failed
Dotnet Build / build (push) Failing after 1m2s
Some checks failed
Dotnet Build / build (push) Failing after 1m2s
This commit is contained in:
parent
77250ee7c1
commit
a0ae016646
1 changed files with 5 additions and 10 deletions
|
@ -80,20 +80,15 @@ jobs:
|
|||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
PROJECT_VERSION: ${{ env.PROJECT_VERSION }}
|
||||
run: |
|
||||
$repoOwner = "WeeXnes"
|
||||
$repoName = "WeeXnesSuite"
|
||||
$tag = "$env:PROJECT_VERSION"
|
||||
$fileName = "currentRelease_$env:PROJECT_VERSION.zip"
|
||||
$fileName = "currentRelease_$tag.zip"
|
||||
$filePath = "release/$fileName"
|
||||
$uploadUrl = "https://git.weexnes.dev/api/v1/repos/$repoOwner/$repoName/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" }
|
||||
$uploadUrl = $release.upload_url -replace "\{\?name,label\}", "?name=$fileName"
|
||||
|
||||
$release = Invoke-RestMethod -Headers @{ Authorization = "token $env:RELEASE_TOKEN" } -Uri $uploadUrl
|
||||
$uploadUrlTemplate = $release.upload_url
|
||||
$uploadUrlFinal = $uploadUrlTemplate -replace "\{\?name,label\}", "?name=$fileName"
|
||||
|
||||
|
||||
Invoke-RestMethod -Uri $uploadUrlFinal `
|
||||
Invoke-RestMethod -Uri $uploadUrl `
|
||||
-Headers @{ Authorization = "token $env:RELEASE_TOKEN" } `
|
||||
-Method Post `
|
||||
-ContentType "application/zip" `
|
||||
|
|
Loading…
Add table
Reference in a new issue