-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathpublish-vault-simple.sh
More file actions
executable file
·42 lines (32 loc) · 1.02 KB
/
Copy pathpublish-vault-simple.sh
File metadata and controls
executable file
·42 lines (32 loc) · 1.02 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
#!/bin/bash
# Simple QuDAG Vault Publishing Script
set -e
echo "🚀 Publishing QuDAG Vault (standalone mode)..."
# Check if CARGO_REGISTRY_TOKEN is set
if [ -z "$CARGO_REGISTRY_TOKEN" ]; then
echo "❌ CARGO_REGISTRY_TOKEN not set!"
echo "Please run: export CARGO_REGISTRY_TOKEN=your_token_here"
exit 1
fi
# Create a clean build
echo "🧹 Cleaning build artifacts..."
cargo clean
# Navigate to vault directory
cd core/vault
echo "🔧 Building vault without QuDAG dependencies..."
cargo build --no-default-features
echo "🧪 Running basic tests..."
cargo test --no-default-features --lib
echo "📚 Generating documentation..."
cargo doc --no-deps --no-default-features
echo "🔍 Running publish dry-run..."
cargo publish --dry-run --no-default-features
read -p "🚀 Ready to publish? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "📦 Publishing to crates.io..."
cargo publish --no-default-features
echo "✅ QuDAG Vault Core published successfully!"
else
echo "❌ Publishing cancelled."
fi