-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
# show changes since the last version tag and bump version | ||
# -------------------------------------------------------- | ||
git cliff -u --bump |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
version="$(git cliff --bumped-version)" | ||
n_version="$(git cliff --bumped-version | sed -e 's/^v//')" | ||
|
||
# show changes since last release (ignoring nightly) and tag current HEAD with | ||
# bumped version | ||
# ---------------------------------------------------------------------------- | ||
./scripts/release/stable/changelog.sh > CHANGELOG.md | ||
git tag -f "$version" | ||
git push --tags --force | ||
|
||
# delete last nightly release and create new nightly release from changelog | ||
# create release with: | ||
# - *title*: number of version | ||
# - *tag*: version | ||
# - *branch|target*: version | ||
# ------------------------------------------------------------------------- | ||
[[ $FORCE -gt 0 ]] && gh release delete "$n_version" -y | ||
gh release create "$n_version" -t "$version" -F CHANGELOG.md |