forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
30 lines (22 loc) · 813 Bytes
/
Copy pathrelease.sh
File metadata and controls
30 lines (22 loc) · 813 Bytes
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
# Get current version from __about__.py
current_version=$(grep -o '".*"' src/mcp_server_omi/__about__.py | tr -d '"')
echo "Current version: $current_version"
# Split version into parts
IFS='.' read -r major minor patch <<< "$current_version"
# Increment patch version
new_patch=$((patch + 1))
new_version="$major.$minor.$new_patch"
echo "New version: $new_version"
# Update version in __about__.py
sed -i '' "s/__version__ = \".*\"/__version__ = \"$new_version\"/" src/mcp_server_omi/__about__.py
# -----
#uv sync
#uv build
#uv publish
#uv cache clean; uv cache prune
# # ----
# Log in to Docker Hub using an access token
echo "$DOCKER_ACCESS_TOKEN" | docker login -u omiai --password-stdin
docker build -t omiai/mcp-server .
docker push omiai/mcp-server:$new_version
docker push omiai/mcp-server:latest