-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMANUAL_PUBLISH.ps1
More file actions
42 lines (33 loc) · 1.23 KB
/
Copy pathMANUAL_PUBLISH.ps1
File metadata and controls
42 lines (33 loc) · 1.23 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
31
32
33
34
35
36
37
38
39
40
41
42
# Manual Publishing Script for Windows PowerShell
# Run this after: cargo login YOUR_TOKEN
Write-Host "📦 Publishing Vedyut crates to crates.io..." -ForegroundColor Green
Write-Host ""
# Navigate to rust directory
Set-Location "c:\Projects\open-source\vedyut\rust"
function Publish-Crate {
param($CrateName)
Write-Host "🚀 Publishing $CrateName..." -ForegroundColor Cyan
Set-Location $CrateName
try {
cargo publish
Write-Host "✅ $CrateName published successfully!" -ForegroundColor Green
}
catch {
Write-Host "⚠️ $CrateName may already be published or failed" -ForegroundColor Yellow
}
Set-Location ..
Write-Host "Waiting 15 seconds for crates.io to propagate..." -ForegroundColor Gray
Start-Sleep -Seconds 15
Write-Host ""
}
# Publish in dependency order
Publish-Crate "vedyut-lipi"
Publish-Crate "vedyut-sandhi"
Publish-Crate "vedyut-prakriya"
Publish-Crate "vedyut-kosha"
Publish-Crate "vedyut-cheda"
Publish-Crate "vedyut-sanskritify"
Publish-Crate "vedyut-core"
Write-Host "🎉 All crates published!" -ForegroundColor Green
Write-Host "View at: https://crates.io/crates/vedyut-core" -ForegroundColor Cyan
Set-Location "c:\Projects\open-source\vedyut"