2021-01-06 16:10:30 +00:00
|
|
|
#!/bin/sh
|
2021-09-29 08:53:44 +00:00
|
|
|
CURRENT_BRANCH=`git branch --show-current`
|
|
|
|
if [[ $CURRENT_BRANCH != "master" ]]; then
|
|
|
|
echo "Not on master branch"
|
2021-11-30 10:27:05 +00:00
|
|
|
exit 1
|
2021-09-29 08:53:44 +00:00
|
|
|
fi
|
|
|
|
|
2021-11-28 21:46:35 +00:00
|
|
|
# set build number
|
2021-12-03 14:31:19 +00:00
|
|
|
BASE_BUILD_NUMBER=`cat .beta-base`
|
|
|
|
BUILD_FILE=".beta-build"
|
2021-11-28 21:46:35 +00:00
|
|
|
BUILD=$((BASE_BUILD_NUMBER + `git rev-list HEAD --count` + 1))
|
|
|
|
ci/set-build.sh $BUILD
|
2021-12-03 14:31:19 +00:00
|
|
|
echo $BUILD >$BUILD_FILE
|
2021-11-28 21:46:35 +00:00
|
|
|
|
|
|
|
# set release notes
|
2021-11-30 10:27:05 +00:00
|
|
|
ci/update-release-notes.sh ios &&
|
|
|
|
ci/update-release-notes.sh mac &&
|
2021-10-05 08:58:50 +00:00
|
|
|
ci/copy-release-notes.sh ios &&
|
|
|
|
ci/copy-release-notes.sh mac
|
2021-10-04 17:21:14 +00:00
|
|
|
|
2021-11-28 21:46:35 +00:00
|
|
|
# pull latest API
|
2022-04-13 08:16:34 +00:00
|
|
|
API_PATH="PassepartoutCore/Sources/PassepartoutServices/API"
|
|
|
|
git -C $API_PATH pull origin master
|
|
|
|
git add $API_PATH
|
2021-11-28 21:46:35 +00:00
|
|
|
|
|
|
|
# add build number
|
2021-12-03 14:31:19 +00:00
|
|
|
git add $BUILD_FILE
|
2021-11-28 21:46:35 +00:00
|
|
|
git add Passepartout.xcodeproj
|
|
|
|
git add *.plist
|
|
|
|
|
|
|
|
# add release notes
|
2021-01-06 16:10:30 +00:00
|
|
|
git add Passepartout/App/*/CHANGELOG.md
|
|
|
|
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
|
2021-09-29 08:53:44 +00:00
|
|
|
|
2021-11-30 10:27:05 +00:00
|
|
|
git commit -m "Attempt beta release"
|
2021-11-28 21:46:35 +00:00
|
|
|
#VERSION=`ci/version-number.sh ios`
|
|
|
|
#git tag "v$VERSION-b$BUILD"
|