Skip to content

Commit d3cff80

Browse files
committed
Make 1.2.3 release
1 parent 54c1ee6 commit d3cff80

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
.vscode/

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "drift-gateway"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
edition = "2021"
55

66
[dependencies]

scripts/release.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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."

0 commit comments

Comments
 (0)