use eas to manage the version code

This commit is contained in:
Hailey
2024-02-11 21:12:35 -08:00
parent a6befbd647
commit 866f6af1fe
5 changed files with 9 additions and 42 deletions
@@ -1,11 +1,8 @@
name: Deploy Nightly Testflight Release
on:
# schedule:
# - cron: '0 5 * * *'
push:
branches:
- hailey/use-eas-version-code
schedule:
- cron: '0 5 * * *'
jobs:
build:
@@ -40,16 +37,5 @@ jobs:
- name: Install dependencies
run: yarn install
# - name: Bump build number
# run: yarn bump:ios
- name: EAS build and submit
run: eas build -p ios --profile production --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
run: eas build -p ios --profile production --auto-submit --non-interactive
+5 -1
View File
@@ -29,7 +29,11 @@
"production": {
"extends": "base",
"ios": {
"resourceClass": "large"
"resourceClass": "large",
"autoIncrement": true
},
"android": {
"autoIncrement": true
},
"channel": "production"
}
+1 -4
View File
@@ -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:extract": "lingui extract",
"intl:compile": "lingui compile",
"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"
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android"
},
"dependencies": {
"@atproto/api": "^0.9.5",
-10
View File
@@ -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"
-10
View File
@@ -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"