You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: release.ps1
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -333,10 +333,20 @@ Invoke-Step "Uploading to Nexus Mods" {
333
333
Write-Host"`nNexus Mods uploads complete!"-ForegroundColor Green
334
334
}
335
335
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 ---
337
347
338
348
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
340
350
Write-Host"Nexus: https://www.nexusmods.com/site/mods/403?tab=files"-ForegroundColor Green
341
351
342
352
Write-Host"`n--- Copy below for Discord ---`n"-ForegroundColor Magenta
0 commit comments