2022-11-12 10:29:39am
This commit is contained in:
parent
0a4aa50f4e
commit
c3b41fd56a
4 changed files with 62 additions and 19 deletions
|
|
@ -1,15 +1,13 @@
|
|||
## Summary 🍻
|
||||
|
||||
For v0.0.99 we focused on X, Y and Z. Enjoy!
|
||||
|
||||
### Features 💸
|
||||
#### Features 💸
|
||||
|
||||
- Now you can easily do x, y and z #9999
|
||||
|
||||
### Improvements 🔧
|
||||
#### Improvements 🔧
|
||||
|
||||
- Improves something or the other #9999
|
||||
|
||||
### Bugfixes 🔴
|
||||
#### Bugfixes 🔴
|
||||
|
||||
- Fixes something or the other #9999
|
||||
|
|
|
|||
13
ci/release/changelogs/v0.0.99.md
Normal file
13
ci/release/changelogs/v0.0.99.md
Normal 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
|
||||
|
|
@ -99,26 +99,58 @@ main() {
|
|||
VERSION="$1"
|
||||
shift
|
||||
|
||||
1_branch
|
||||
2_changelog
|
||||
3_commit
|
||||
4_tag
|
||||
5_draft_release
|
||||
6_draft_pr
|
||||
7_build_assets
|
||||
9_upload_assets
|
||||
runjob ensure_branch
|
||||
runjob ensure_changelog
|
||||
runjob ensure_commit
|
||||
# runjob push_branch
|
||||
# 3_commit
|
||||
# 4_tag
|
||||
# 5_draft_release
|
||||
# 6_draft_pr
|
||||
# 7_build_assets
|
||||
# 9_upload_assets
|
||||
|
||||
if [ "$(git_describe_ref)" != "$TAG" ]; then
|
||||
git tag -am "$TAG" "$TAG"
|
||||
# if [ "$(git_describe_ref)" != "$TAG" ]; then
|
||||
# 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
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
2
ci/sub
2
ci/sub
|
|
@ -1 +1 @@
|
|||
Subproject commit ffe9df3b89e12db7f1dc4ed9d5a25730dde5cc79
|
||||
Subproject commit a4961f772d1f98bb7a8185a6590ed4346684e392
|
||||
Loading…
Reference in a new issue