-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpublish.sh
More file actions
executable file
·48 lines (39 loc) · 1.27 KB
/
publish.sh
File metadata and controls
executable file
·48 lines (39 loc) · 1.27 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
43
44
45
46
47
48
#!/bin/bash
# Example publishing script for md2doc
# This script shows how to publish using environment variables
echo "🚀 md2doc Publishing Example"
echo "=========================="
# Build the package first
echo "📦 Building package..."
uv build
if [ ! -d "dist" ]; then
echo "❌ Build failed!"
exit 1
fi
echo "✅ Build successful!"
# Example 1: Publish to TestPyPI
echo ""
echo "📤 Publishing to TestPyPI..."
echo "Set your TestPyPI token:"
echo "export UV_PUBLISH_TOKEN=\"your-testpypi-token-here\""
echo "export UV_PUBLISH_URL=\"https://test.pypi.org/legacy/\""
echo ""
echo "Then run: uv publish"
echo ""
# Example 2: Publish to PyPI
echo "📤 Publishing to PyPI..."
echo "Set your PyPI token:"
echo "export UV_PUBLISH_TOKEN=\"your-pypi-token-here\""
echo "export UV_PUBLISH_URL=\"https://upload.pypi.org/legacy/\""
echo ""
echo "Then run: uv publish"
echo ""
# Example 3: Using command line arguments
echo "📤 Alternative: Using command line arguments..."
echo "For TestPyPI:"
echo "uv publish -t \"your-testpypi-token-here\" --publish-url \"https://test.pypi.org/legacy/\""
echo ""
echo "For PyPI:"
echo "uv publish -t \"your-pypi-token-here\" --publish-url \"https://upload.pypi.org/legacy/\""
echo ""
echo "🎉 After publishing, users can install with: uvx md2doc"