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:
parent
b0fff93c89
commit
6815d691eb
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue