feat(updates): switch auto-updates to GitHub releases and remove Gitea references (v3.0.1)
Build and Release / Build Windows x64 (push) Has been cancelled

This commit is contained in:
2026-09-04 16:37:15 +03:00
parent 4c9813b37b
commit 0d0eac4481
8 changed files with 36 additions and 45 deletions
-22
View File
@@ -46,25 +46,3 @@ jobs:
files: ${{ env.ZIP_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Windows Zip to Gitea Release
shell: pwsh
run: |
$tag = "${{ github.ref_name }}"
if (-not $tag) { $tag = "v3.0.0" }
$token = "1c744d6044d756759d7b1f693c94c80cf70d75fa"
$giteaUrl = "https://gitea.rardogsynapse.online"
$repo = "RarDog/Lunaris"
$zipName = $env:ZIP_NAME
Write-Host "Fetching Gitea release info for tag $tag..."
$relUrl = "$giteaUrl/api/v1/repos/$repo/releases/tags/$tag"
$headers = @{ "Authorization" = "token $token" }
$rel = Invoke-RestMethod -Uri $relUrl -Headers $headers -Method Get
$releaseId = $rel.id
Write-Host "Found Gitea release ID: $releaseId"
$uploadUrl = "$giteaUrl/api/v1/repos/$repo/releases/$releaseId/assets?name=$zipName"
Write-Host "Uploading $zipName to $uploadUrl..."
curl.exe -X POST -H "Authorization: token $token" -F "attachment=@$zipName" $uploadUrl
Write-Host "Successfully uploaded Windows build to Gitea!"