Skip to content

Commit cca8706

Browse files
committed
make releases
1 parent 11e6dfc commit cca8706

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Rust Server
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Triggers on version tags like v1.2.3
7+
8+
jobs:
9+
build-and-release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Rust
17+
uses: actions/setup-rust@v1
18+
with:
19+
rust-version: stable
20+
21+
- name: Build release binary
22+
run: cargo build --release --manifest-path server/Cargo.toml
23+
24+
- name: Prepare binary for release
25+
run: |
26+
mkdir -p dist
27+
cp server/target/release/server dist/mcp-v8
28+
# Replace <your-binary-name> with the actual binary name
29+
30+
- name: Create GitHub Release
31+
uses: softprops/action-gh-release@v2
32+
with:
33+
files: dist/mcp-v8
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)