File tree Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
+ .vscode /
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " drift-gateway"
3
- version = " 1.2.2 "
3
+ version = " 1.2.3 "
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ echo " Preparing gateway release.."
3
+
4
+ # Check if working directory is clean
5
+ if [ -n " $( git status --porcelain) " ]; then
6
+ echo " Error: git working directory is not clean. Commit or stash changes first."
7
+ exit 1
8
+ fi
9
+
10
+ # Run checks
11
+ cargo check
12
+ cargo fmt --all -- --check
13
+
14
+ # Get version from Cargo.toml
15
+ CARGO_VERSION=$( sed -n ' s/^version = "\([0-9]*\.[0-9]*\.[0-9]*\)"/\1/p' Cargo.toml)
16
+ echo " Making release: v$CARGO_VERSION "
17
+
18
+ # Check if tag already exists
19
+ if git rev-parse " v$CARGO_VERSION " > /dev/null 2>&1 ; then
20
+ echo " Error: Tag v$CARGO_VERSION already exists"
21
+ echo " Please update the version in Cargo.toml first"
22
+ exit 1
23
+ fi
24
+
25
+ # Create and push tag
26
+ git tag " v$CARGO_VERSION "
27
+ git push origin " v$CARGO_VERSION "
28
+
29
+ echo " Release tag v$CARGO_VERSION pushed. GitHub Actions will handle the release."
You can’t perform that action at this time.
0 commit comments