-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_release.ps1
More file actions
30 lines (25 loc) · 1.28 KB
/
Copy pathpush_release.ps1
File metadata and controls
30 lines (25 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Write-Host "Starting Git Push and Tag Release for v2.5..." -ForegroundColor Cyan
# 1. Push to main branch
git push origin main
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to push to git repository 'main' branch."
Exit 1
}
# 2. Tag the release
Write-Host "Creating git tag v2.5..." -ForegroundColor Green
git tag -a v2.5 -m "Local LLM/AI v2.5: Official release of premium, offline-first Android client" -f
git push origin v2.5 --force
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to push tag v2.5 to origin."
Exit 1
}
Write-Host "Tag v2.5 successfully pushed to GitHub!" -ForegroundColor Green
# 3. Create GitHub Release using gh CLI if available
if (Get-Command gh -ErrorAction SilentlyContinue) {
Write-Host "GitHub CLI (gh) detected. Publishing the release and uploading the release APK..." -ForegroundColor Cyan
gh release create v2.5 app/build/outputs/apk/release/app-release.apk --title "Local LLM/AI v2.5" --notes-file release_notes.md --latest
} else {
Write-Host "GitHub CLI (gh) not detected. Please upload the compiled APK manually to the GitHub release page:" -ForegroundColor Yellow
Write-Host "https://github.com/PrinceBad/Local-LLM-AI/releases" -ForegroundColor Yellow
}
Write-Host "Git Push and Release Setup completed successfully!" -ForegroundColor Green