test script

This commit is contained in:
Hailey
2024-02-12 15:15:17 -08:00
parent 882f7ec4ea
commit 9b43e5626d
5 changed files with 24 additions and 7 deletions
@@ -1,8 +1,11 @@
name: Deploy Nightly Testflight Release
on:
schedule:
- cron: '0 5 * * *'
# schedule:
# - cron: '0 5 * * *'
push:
branches:
- hailey/use-eas-version-code
jobs:
build:
@@ -38,4 +41,4 @@ jobs:
run: yarn install
- name: EAS build and submit
run: eas build -p ios --profile production --auto-submit --non-interactive
run: yarn use-build-number eas build -p ios --profile github --non-interactive
+1 -1
View File
@@ -11,7 +11,7 @@ const DARK_SPLASH_CONFIG = {
resizeMode: 'cover',
}
module.exports = function () {
module.exports = function (config) {
/**
* App version number. Should be incremented as part of a release cycle.
*/
+10
View File
@@ -36,6 +36,16 @@
"autoIncrement": true
},
"channel": "production"
},
"github": {
"extends": "base",
"ios": {
"autoIncrement": true
},
"android": {
"autoIncrement": true
},
"channel": "preview"
}
},
"submit": {
+5 -1
View File
@@ -13,7 +13,11 @@
"ios": "expo run:ios",
"web": "expo start --web",
"build-web": "expo export:web && node ./scripts/post-web-build.js && cp -v ./web-build/static/js/*.* ./bskyweb/static/js/",
"build-all": "yarn intl:build && eas build --platform all",
"build-all": "yarn intl:build && ./scripts/useBuildNumberEnv.sh eas build --platform all",
"build-ios": "./scripts/useBuildNumberEnv.sh eas build -p ios",
"build-android": "./scripts/useBuildNumberEnv.sh eas build -p android",
"use-build-number": "./scripts/useBuildNumberEnv.sh",
"build": "./scripts/useBuildNumberEnv.sh eas build",
"start": "expo start --dev-client",
"start:prod": "expo start --dev-client --no-dev --minify",
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
@@ -1,5 +1,4 @@
#!/bin/bash
echo "$@"
outputIos=$(eas build:version:get -p ios)
outputAndroid=$(eas build:version:get -p android)
currentIosVersion=${outputIos#*buildNumber - }
@@ -8,4 +7,5 @@ currentAndroidVersion=${outputAndroid#*versionCode - }
BSKY_IOS_BUILD_NUMBER=$((currentIosVersion+1))
BSKY_ANDROID_VERSION_CODE=$((currentAndroidVersion+1))
bash -c "BSKY_IOS_BUILD_NUMBER=$BSKY_IOS_BUILD_NUMBER BSKY_ANDROID_VERSION_CODE=$BSKY_ANDROID_VERSION_CODE eas build -p ios --profile production"
bash -c "BSKY_IOS_BUILD_NUMBER=$BSKY_IOS_BUILD_NUMBER BSKY_ANDROID_VERSION_CODE=$BSKY_ANDROID_VERSION_CODE $*"