Skip to content

Commit

Permalink
Push new version to release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed May 31, 2022
1 parent 9424adf commit 8e4dc7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Next (YYYY-MM-DD)

- Use BORS.
- Update to nix 0.24, limit features to only those used ([#6](https://github.com/watchexec/clearscreen/pull/6)).

## v1.0.9 (2021-12-02)

- Change CI test to test Windows 10 detection with a manifested test executable.
Expand Down
10 changes: 7 additions & 3 deletions bin/version
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fi

date=$(date +%Y-%m-%d)
echo "Next version to be $newver ($date), creating..."
git switch -C release

sed -E -i "s/^## Next.*$/## Next (YYYY-MM-DD)\n\n## v$newver ($date)/1" CHANGELOG.md
sed -E -i "s/^clearscreen = \"$extver\"/clearscreen = \"$newver\"/1" README.md
Expand All @@ -49,7 +50,10 @@ sed -E -i "s/^date-released: .+$/date-released: $date/1" CITATION.cff
cargo check

git commit -am "$newver"
git tag -sam "$newver" "v$newver"

echo "Pushing to upstream"
git push --follow-tags $upstream $mainbranch
echo "Pushing to upstream, make a PR for Bors then release with GH"
git push -u $upstream release

echo "Deleting local release branch"
git switch main
git branch -D release

0 comments on commit 8e4dc7b

Please sign in to comment.