Skip to content

Commit

Permalink
chore: add nightly release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
comfysage committed Jun 10, 2024
1 parent d2178b2 commit 82a1157
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release/nightly/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 nightly tag
# ---------------------------------------
git cliff mega..nightly
21 changes: 21 additions & 0 deletions scripts/release/nightly/create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# show changes since last release (ignoring nightly) and tag current HEAD with
# nightly
# ----------------------------------------------------------------------------
./scripts/release/nightly/changelog.sh > CHANGELOG.md
git tag -f nightly
git push --tags --force

branch=$(git branch --show-current)
hash=$(git rev-parse HEAD | cut -c 1-7)

# delete last nightly release and create new nightly release from changelog
# create release with:
# - *prerelease*: true
# - *title*: branch-hash
# - *tag*: nightly
# - *branch|target*: nightly
# -------------------------------------------------------------------------
gh release delete nightly -y
gh release create -p nightly --target nightly -t "${branch}-${hash}" -F CHANGELOG.md
6 changes: 6 additions & 0 deletions scripts/release/nightly/release-name.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

branch=$(git branch --show-current)
hash=$(git rev-parse HEAD | cut -c 1-7)

echo "${branch}-${hash}"

0 comments on commit 82a1157

Please sign in to comment.