-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54c1ee6
commit d3cff80
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
.vscode/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |