use eas to manage the version code
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
name: Deploy Nightly Testflight Release
|
name: Deploy Nightly Testflight Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# schedule:
|
schedule:
|
||||||
# - cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- hailey/use-eas-version-code
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -40,16 +37,5 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
# - name: Bump build number
|
|
||||||
# run: yarn bump:ios
|
|
||||||
|
|
||||||
- name: EAS build and submit
|
- name: EAS build and submit
|
||||||
run: eas build -p ios --profile production --non-interactive
|
run: eas build -p ios --profile production --auto-submit --non-interactive
|
||||||
|
|
||||||
# - name: Commit
|
|
||||||
# uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
# with:
|
|
||||||
# commit_message: Nightly iOS Build Bump
|
|
||||||
# branch: main
|
|
||||||
# commit_user_name: github-actions[bot]
|
|
||||||
# commit_user_email: github-actions[bot]@users.noreply.github.com
|
|
||||||
|
|||||||
@@ -29,7 +29,11 @@
|
|||||||
"production": {
|
"production": {
|
||||||
"extends": "base",
|
"extends": "base",
|
||||||
"ios": {
|
"ios": {
|
||||||
"resourceClass": "large"
|
"resourceClass": "large",
|
||||||
|
"autoIncrement": true
|
||||||
|
},
|
||||||
|
"android": {
|
||||||
|
"autoIncrement": true
|
||||||
},
|
},
|
||||||
"channel": "production"
|
"channel": "production"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-4
@@ -36,10 +36,7 @@
|
|||||||
"intl:check": "yarn intl:extract && git diff-index -G'(^[^\\*# /])|(^#\\w)|(^\\s+[^\\*#/])' HEAD || (echo '\n⚠️ i18n detected un-extracted translations\n' && exit 1)",
|
"intl:check": "yarn intl:extract && git diff-index -G'(^[^\\*# /])|(^#\\w)|(^\\s+[^\\*#/])' HEAD || (echo '\n⚠️ i18n detected un-extracted translations\n' && exit 1)",
|
||||||
"intl:extract": "lingui extract",
|
"intl:extract": "lingui extract",
|
||||||
"intl:compile": "lingui compile",
|
"intl:compile": "lingui compile",
|
||||||
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",
|
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android"
|
||||||
"bump": "./scripts/bumpIosBuildNumber.sh && ./scripts/bumpAndroidBuildNumber.sh",
|
|
||||||
"bump:ios": "./scripts/bumpIosBuildNumber.sh",
|
|
||||||
"bump:android": "./scripts/bumpAndroidBuildNumber.sh"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/api": "^0.9.5",
|
"@atproto/api": "^0.9.5",
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# The number here should always be the line number the iOS build variable is on
|
|
||||||
line=$(sed "30q;d" ./app.config.js)
|
|
||||||
currentBuildNumber=$(echo "$line" | grep -oE '[0-9]+([.][0-9]+)?')
|
|
||||||
newBuildNumber=$((currentBuildNumber+1))
|
|
||||||
newBuildVariable="const ANDROID_VERSION_CODE = '$newBuildNumber'"
|
|
||||||
sed -i.bak "30s/.*/ $newBuildVariable/" ./app.config.js
|
|
||||||
rm -rf ./app.config.js.bak
|
|
||||||
|
|
||||||
echo "Android build number bumped to $newBuildNumber"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# The number here should always be the line number the iOS build variable is on
|
|
||||||
line=$(sed "24q;d" ./app.config.js)
|
|
||||||
currentBuildNumber=$(echo "$line" | grep -oE '[0-9]+([.][0-9]+)?')
|
|
||||||
newBuildNumber=$((currentBuildNumber+1))
|
|
||||||
newBuildVariable="const IOS_BUILD_NUMBER = '$newBuildNumber'"
|
|
||||||
sed -i.bak "24s/.*/ $newBuildVariable/" ./app.config.js
|
|
||||||
rm -rf ./app.config.js.bak
|
|
||||||
|
|
||||||
echo "iOS build number bumped to $newBuildNumber"
|
|
||||||
Reference in New Issue
Block a user