Skip to content

Commit

Permalink
feat(ci): Add release.sh script
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Gil <[email protected]>
  • Loading branch information
pando85 committed Sep 16, 2024
1 parent 736f4b9 commit a9f89c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
17 changes: 17 additions & 0 deletions .ci/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e

# bump version
vim Cargo.toml
make update-version

# update lock file
cargo update -p rash_core -p rash_derive

make update-changelog

git add .
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)
git commit -m "release: Version $VERSION"

echo "After merging the PR, tag and release are automatically done"
15 changes: 1 addition & 14 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
# release workflow

```bash
# bump version
vim Cargo.toml
make update-version

# update lock file
cargo update -p rash_core -p rash_derive

# update CHANGELOG.md
make update-changelog

# merge PR
git add .
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)
git commit -m "release: Version $VERSION"
.ci/release.sh
```

## Upgrade dependencies
Expand Down

0 comments on commit a9f89c7

Please sign in to comment.