Commit build number with beta
Pick base build number from env, not project. Can now drop fetch-depth 0 from workflow, no needs for commits count.
This commit is contained in:
parent
f158f4998e
commit
51821660d2
1
.env
1
.env
|
@ -1,3 +1,4 @@
|
||||||
# constant (fastlane)
|
# constant (fastlane)
|
||||||
LC_ALL="en_US.UTF-8"
|
LC_ALL="en_US.UTF-8"
|
||||||
LANG="en_US.UTF-8"
|
LANG="en_US.UTF-8"
|
||||||
|
BASE_BUILD_NUMBER="1071"
|
||||||
|
|
|
@ -34,7 +34,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare build
|
- name: Prepare build
|
||||||
uses: ./.github/actions/prepare-build-app
|
uses: ./.github/actions/prepare-build-app
|
||||||
|
@ -48,7 +47,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare build
|
- name: Prepare build
|
||||||
uses: ./.github/actions/prepare-build-app
|
uses: ./.github/actions/prepare-build-app
|
||||||
|
@ -67,7 +65,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare build
|
- name: Prepare build
|
||||||
uses: ./.github/actions/prepare-build-app
|
uses: ./.github/actions/prepare-build-app
|
||||||
|
@ -93,7 +90,6 @@ jobs:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare Ruby bundle
|
- name: Prepare Ruby bundle
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
@ -122,7 +118,6 @@ jobs:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare Ruby bundle
|
- name: Prepare Ruby bundle
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
|
@ -1426,7 +1426,7 @@
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
CURRENT_PROJECT_VERSION = 1071;
|
CURRENT_PROJECT_VERSION = 2935;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
@ -1492,7 +1492,7 @@
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
CURRENT_PROJECT_VERSION = 1071;
|
CURRENT_PROJECT_VERSION = 2935;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.17.2</string>
|
<string>1.17.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1071</string>
|
<string>2935</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.17.2</string>
|
<string>1.17.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1071</string>
|
<string>2935</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.17.2</string>
|
<string>1.17.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1071</string>
|
<string>2935</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.17.2</string>
|
<string>1.17.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1071</string>
|
<string>2935</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 666d370e838973fcac8d5271d0e54b1703f2ca3b
|
Subproject commit a35886548dd3068e4173d51dd448288b45ad3eff
|
|
@ -1 +1 @@
|
||||||
Subproject commit 149a7f44475708f5b75889fd489bdbd6a063232b
|
Subproject commit 26620d596ca3bbc25be6cc2efa2b52797021379a
|
|
@ -5,17 +5,32 @@ if [[ $CURRENT_BRANCH != "master" ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
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 ios &&
|
||||||
ci/update-changelog.sh mac &&
|
ci/update-changelog.sh mac &&
|
||||||
ci/copy-release-notes.sh ios &&
|
ci/copy-release-notes.sh ios &&
|
||||||
ci/copy-release-notes.sh mac
|
ci/copy-release-notes.sh mac
|
||||||
|
|
||||||
|
# pull latest API
|
||||||
git -C PassepartoutCore/Sources/PassepartoutCore/API pull origin master
|
git -C PassepartoutCore/Sources/PassepartoutCore/API pull origin master
|
||||||
git add */PassepartoutCore/API
|
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/*/CHANGELOG.md
|
||||||
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
|
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
|
||||||
git commit -m "Set beta release"
|
|
||||||
|
|
||||||
VERSION=`ci/version-number.sh ios`
|
git commit -m "Set beta release"
|
||||||
BUILD=`ci/build-number.sh ios`
|
#VERSION=`ci/version-number.sh ios`
|
||||||
git tag "v$VERSION-b$BUILD"
|
#git tag "v$VERSION-b$BUILD"
|
||||||
|
|
Loading…
Reference in New Issue