feat: create_release.sh check for typos

This commit is contained in:
Jack Wills
2023-02-03 18:44:33 +00:00
parent 3c6a8db6ef
commit 310a63f4ca
2 changed files with 19 additions and 3 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
## Docs ### Chores
+ devcontainer.json updated, typos-cli installed, temporary(?) buildkit fix, [3c6a8db6ef74d499b49fabe8912785cac16d9c4b]
### Docs
+ AUR install instructions, thanks [orhun](https://github.com/orhun), [c5aa346bca139cc5ece1f4127293977924d16fca] + AUR install instructions, thanks [orhun](https://github.com/orhun), [c5aa346bca139cc5ece1f4127293977924d16fca]
+ typos fixes, thanks [kianmeng](https://github.com/kianmeng), [5052d7ab0a156c43cadbd922c0019b284f24943a] + typos fixes, thanks [kianmeng](https://github.com/kianmeng), [5052d7ab0a156c43cadbd922c0019b284f24943a]
+15 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# rust create_release # rust create_release
# v0.1.2 # v0.2.1
STAR_LINE='****************************************' STAR_LINE='****************************************'
CWD=$(pwd) CWD=$(pwd)
@@ -192,10 +192,21 @@ release_continue () {
ask_continue ask_continue
} }
# Check repository for typos
check_typos () {
echo -e "\n${PURPLE}check typos${RESET}"
typos
ask_continue
}
# Full flow to create a new release # Full flow to create a new release
release_flow() { release_flow() {
check_typos
check_git check_git
get_git_remote_url get_git_remote_url
cargo_test cargo_test
cargo_build cargo_build
@@ -227,8 +238,10 @@ release_flow() {
release_continue "git checkout main" release_continue "git checkout main"
git checkout main git checkout main
release_continue "git merge --no-ff \"${RELEASE_BRANCH}\" -m \"chore: merge ${RELEASE_BRANCH} into main\"" echo -e "${PURPLE}git merge --no-ff \"${RELEASE_BRANCH}\" -m \"chore: merge ${RELEASE_BRANCH} into main\"${RESET}"
git merge --no-ff "$RELEASE_BRANCH" -m "chore: merge ${RELEASE_BRANCH} into main" git merge --no-ff "$RELEASE_BRANCH" -m "chore: merge ${RELEASE_BRANCH} into main"
echo -e "\n${PURPLE}cargo check${RESET}\n"
cargo check
release_continue "git tag -am \"${RELEASE_BRANCH}\" \"$NEW_TAG_WITH_V\"" release_continue "git tag -am \"${RELEASE_BRANCH}\" \"$NEW_TAG_WITH_V\""
git tag -am "${RELEASE_BRANCH}" "$NEW_TAG_WITH_V" git tag -am "${RELEASE_BRANCH}" "$NEW_TAG_WITH_V"