Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/script/release #1307

Merged
merged 5 commits into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
set -eu
set -o pipefail

set +e
git b -d main
set -e

DATE=$(date '+%Y%m.%d.%H%M%S')
git fetch origin
git switch -c release/$DATE origin/main
Expand All @@ -15,7 +11,10 @@ sed -E -i "" "s/^version: (.+)/version: $DATE/" pubspec.yaml
git add pubspec.yaml
git commit -m ":up: to $DATE"

gh pr create --title "Release $DATE"
git push origin $(git rev-parse --abbrev-ref HEAD)
gh pr create --fill --base main --head $(git rev-parse --abbrev-ref HEAD)

git fetch origin

# NOTE: --merge option will be create merge commit
gh pr merge --merge --delete-branch
Expand All @@ -29,6 +28,3 @@ git tag release-android-v$DATE
git push origin --tags

gh release create $DATE --generate-notes

git b -d main