Skip to content

Commit

Permalink
Make 1.2.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Dec 11, 2024
1 parent 54c1ee6 commit d3cff80
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.vscode/
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "drift-gateway"
version = "1.2.2"
version = "1.2.3"
edition = "2021"

[dependencies]
Expand Down
29 changes: 29 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
echo "Preparing gateway release.."

# Check if working directory is clean
if [ -n "$(git status --porcelain)" ]; then
echo "Error: git working directory is not clean. Commit or stash changes first."
exit 1
fi

# Run checks
cargo check
cargo fmt --all -- --check

# Get version from Cargo.toml
CARGO_VERSION=$(sed -n 's/^version = "\([0-9]*\.[0-9]*\.[0-9]*\)"/\1/p' Cargo.toml)
echo "Making release: v$CARGO_VERSION"

# Check if tag already exists
if git rev-parse "v$CARGO_VERSION" >/dev/null 2>&1; then
echo "Error: Tag v$CARGO_VERSION already exists"
echo "Please update the version in Cargo.toml first"
exit 1
fi

# Create and push tag
git tag "v$CARGO_VERSION"
git push origin "v$CARGO_VERSION"

echo "Release tag v$CARGO_VERSION pushed. GitHub Actions will handle the release."

0 comments on commit d3cff80

Please sign in to comment.