mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2024-12-26 11:22:40 +00:00
51821660d2
Pick base build number from env, not project. Can now drop fetch-depth 0 from workflow, no needs for commits count.
37 lines
859 B
Bash
Executable File
37 lines
859 B
Bash
Executable File
#!/bin/sh
|
|
CURRENT_BRANCH=`git branch --show-current`
|
|
if [[ $CURRENT_BRANCH != "master" ]]; then
|
|
echo "Not on master branch"
|
|
exit
|
|
fi
|
|
|
|
# just in case
|
|
scripts/after-beta.sh
|
|
|
|
# set build number
|
|
. .env
|
|
BUILD=$((BASE_BUILD_NUMBER + `git rev-list HEAD --count` + 1))
|
|
ci/set-build.sh $BUILD
|
|
|
|
# set release notes
|
|
ci/update-changelog.sh ios &&
|
|
ci/update-changelog.sh mac &&
|
|
ci/copy-release-notes.sh ios &&
|
|
ci/copy-release-notes.sh mac
|
|
|
|
# pull latest API
|
|
git -C PassepartoutCore/Sources/PassepartoutCore/API pull origin master
|
|
git add */PassepartoutCore/API
|
|
|
|
# add build number
|
|
git add Passepartout.xcodeproj
|
|
git add *.plist
|
|
|
|
# add release notes
|
|
git add Passepartout/App/*/CHANGELOG.md
|
|
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
|
|
|
|
git commit -m "Set beta release"
|
|
#VERSION=`ci/version-number.sh ios`
|
|
#git tag "v$VERSION-b$BUILD"
|