Skip to content

Commit 2679fc0

Browse files
halgariclaude
andcommitted
Publish GitHub release after Nexus uploads succeed
Create as draft first, promote to full release only after all Nexus Mods uploads complete successfully. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93505d0 commit 2679fc0

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

release.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,20 @@ Invoke-Step "Uploading to Nexus Mods" {
333333
Write-Host "`nNexus Mods uploads complete!" -ForegroundColor Green
334334
}
335335

336-
# --- Step 8: Discord output ---
336+
# --- Step 8: Publish GitHub release ---
337+
338+
Invoke-Step "Publishing GitHub release" {
339+
Push-Location $repoRoot
340+
gh release edit $script:version --draft=false
341+
Assert-ExitCode "gh release edit --draft=false"
342+
Pop-Location
343+
Write-Host "Release $($script:version) is now live!" -ForegroundColor Green
344+
}
345+
346+
# --- Step 9: Discord output ---
337347

338348
Invoke-Step "Release complete!" {
339-
Write-Host "`nGitHub: https://github.com/wabbajack-tools/wabbajack/releases/tag/$($script:version) (DRAFT - publish when ready)" -ForegroundColor Green
349+
Write-Host "`nGitHub: https://github.com/wabbajack-tools/wabbajack/releases/tag/$($script:version)" -ForegroundColor Green
340350
Write-Host "Nexus: https://www.nexusmods.com/site/mods/403?tab=files" -ForegroundColor Green
341351

342352
Write-Host "`n--- Copy below for Discord ---`n" -ForegroundColor Magenta

0 commit comments

Comments
 (0)