passepartout-apple/scripts/commit-beta.sh

38 lines
931 B
Bash
Raw Normal View History

2021-01-06 16:10:30 +00:00
#!/bin/sh
CURRENT_BRANCH=`git branch --show-current`
if [[ $CURRENT_BRANCH != "master" ]]; then
echo "Not on master branch"
exit 1
fi
# set build number
BASE_BUILD_NUMBER=`cat .beta-base`
BUILD_FILE=".beta-build"
BUILD=$((BASE_BUILD_NUMBER + `git rev-list HEAD --count` + 1))
ci/set-build.sh $BUILD
echo $BUILD >$BUILD_FILE
# set release notes
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
# pull latest API
2022-07-18 05:57:01 +00:00
API_PATH="PassepartoutLibrary/Sources/PassepartoutServices/API"
2022-04-13 08:16:34 +00:00
git -C $API_PATH pull origin master
git add $API_PATH
# add build number
git add $BUILD_FILE
git add Passepartout.xcodeproj
git add *.plist
# add release notes
git add CHANGELOG.md
2022-05-01 18:44:12 +00:00
git add Passepartout/App/fastlane/ios/metadata/*/release_notes.txt
git commit -m "Attempt beta release"
#VERSION=`ci/version-number.sh ios`
#git tag "v$VERSION-b$BUILD"