Skip to content

Commit

Permalink
chore: add stable release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
comfysage committed Jun 10, 2024
1 parent 7976d5f commit f7722da
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release/stable/changelog.sh
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
20 changes: 20 additions & 0 deletions scripts/release/stable/create.sh
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

0 comments on commit f7722da

Please sign in to comment.