Redo local scripts for remote CI

commit-beta

- Ensure master branch
- Commit beta release to CHANGELOG
- Tag locally

commit-release

- Ensure master branch
- Update App Store Connect metadata

push-refs

- Sync stable with master
- Push master
- Push tags (trigger CI)
This commit is contained in:
Davide De Rosa 2021-09-29 10:53:44 +02:00
parent b0fff93c89
commit 6815d691eb
3 changed files with 26 additions and 0 deletions

View File

@ -1,4 +1,21 @@
#!/bin/sh
CURRENT_BRANCH=`git branch --show-current`
if [[ $CURRENT_BRANCH != "master" ]]; then
echo "Not on master branch"
exit
fi
ci/update-changelog.sh ios
ci/update-changelog.sh mac
git add Passepartout/App/*/CHANGELOG.md
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
git commit -m "Set beta release"
VERSION=`agvtool mvers -terse1`
BUILD=`agvtool vers -terse`
# predict build number (add commits count)
HISTORY=`git rev-list --count HEAD`
BUILD=$((BUILD + HISTORY))
git tag "v$VERSION-b$BUILD"

9
scripts/commit-release.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
CURRENT_BRANCH=`git branch --show-current`
if [[ $CURRENT_BRANCH != "master" ]]; then
echo "Not on master branch"
exit
fi
ci/update-asc-metadata.sh mac
ci/update-asc-metadata.sh ios