2022-11-12 10:29:39am

This commit is contained in:
Anmol Sethi 2022-11-12 10:29:39 -08:00
parent 0a4aa50f4e
commit c3b41fd56a
4 changed files with 62 additions and 19 deletions

View file

@ -1,15 +1,13 @@
## Summary 🍻
For v0.0.99 we focused on X, Y and Z. Enjoy! For v0.0.99 we focused on X, Y and Z. Enjoy!
### Features 💸 #### Features 💸
- Now you can easily do x, y and z #9999 - Now you can easily do x, y and z #9999
### Improvements 🔧 #### Improvements 🔧
- Improves something or the other #9999 - Improves something or the other #9999
### Bugfixes 🔴 #### Bugfixes 🔴
- Fixes something or the other #9999 - Fixes something or the other #9999

View file

@ -0,0 +1,13 @@
For v0.0.99 we focused on X, Y and Z. Enjoy!
#### Features 💸
- Now you can easily do x, y and z #9999
#### Improvements 🔧
- Improves something or the other #9999
#### Bugfixes 🔴
- Fixes something or the other #9999

View file

@ -99,26 +99,58 @@ main() {
VERSION="$1" VERSION="$1"
shift shift
1_branch runjob ensure_branch
2_changelog runjob ensure_changelog
3_commit runjob ensure_commit
4_tag # runjob push_branch
5_draft_release # 3_commit
6_draft_pr # 4_tag
7_build_assets # 5_draft_release
9_upload_assets # 6_draft_pr
# 7_build_assets
# 9_upload_assets
if [ "$(git_describe_ref)" != "$TAG" ]; then # if [ "$(git_describe_ref)" != "$TAG" ]; then
git tag -am "$TAG" "$TAG" # git tag -am "$TAG" "$TAG"
# fi
# hide git push origin "$TAG"
}
ensure_branch() {
if [ -z "$(git branch --list "$VERSION")" ]; then
sh_c git branch "$VERSION" master
fi fi
hide git push origin "$TAG" sh_c git checkout -q "$VERSION"
} }
1_branch() { ensure_changelog() {
if [ -f "./ci/release/changelogs/$VERSION.md" ]; then
return 0
fi
sh_c cp "./ci/release/changelogs/next.md" "./ci/release/changelogs/$VERSION.md"
if [ -z "${PRERELEASE-}" ]; then
sh_c cp "./ci/release/changelogs/template.md" "./ci/release/changelogs/next.md"
fi
} }
7_build_assets() { ensure_commit() {
sh_c git add --all
if ! git commit --dry-run >/dev/null; then
return 0
fi
if [ "$(git show --no-patch --format=%s)" = "$VERSION" ]; then
sh_c git commit --amend --no-edit
else
sh_c git commit -m "$VERSION"
fi
}
push_branch() {
sh_c git push -fu origin "$VERSION"
}
ensure_built_assets() {
./ci/release/build.sh ${REBUILD:+--rebuild} $VERSION ./ci/release/build.sh ${REBUILD:+--rebuild} $VERSION
} }

2
ci/sub

@ -1 +1 @@
Subproject commit ffe9df3b89e12db7f1dc4ed9d5a25730dde5cc79 Subproject commit a4961f772d1f98bb7a8185a6590ed4346684e392