test script
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
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:
|
||||||
@@ -38,4 +41,4 @@ jobs:
|
|||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: EAS build and submit
|
- 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
@@ -11,7 +11,7 @@ const DARK_SPLASH_CONFIG = {
|
|||||||
resizeMode: 'cover',
|
resizeMode: 'cover',
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function () {
|
module.exports = function (config) {
|
||||||
/**
|
/**
|
||||||
* App version number. Should be incremented as part of a release cycle.
|
* App version number. Should be incremented as part of a release cycle.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -36,6 +36,16 @@
|
|||||||
"autoIncrement": true
|
"autoIncrement": true
|
||||||
},
|
},
|
||||||
"channel": "production"
|
"channel": "production"
|
||||||
|
},
|
||||||
|
"github": {
|
||||||
|
"extends": "base",
|
||||||
|
"ios": {
|
||||||
|
"autoIncrement": true
|
||||||
|
},
|
||||||
|
"android": {
|
||||||
|
"autoIncrement": true
|
||||||
|
},
|
||||||
|
"channel": "preview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"submit": {
|
"submit": {
|
||||||
|
|||||||
+5
-1
@@ -13,7 +13,11 @@
|
|||||||
"ios": "expo run:ios",
|
"ios": "expo run:ios",
|
||||||
"web": "expo start --web",
|
"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-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": "expo start --dev-client",
|
||||||
"start:prod": "expo start --dev-client --no-dev --minify",
|
"start:prod": "expo start --dev-client --no-dev --minify",
|
||||||
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
|
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "$@"
|
|
||||||
outputIos=$(eas build:version:get -p ios)
|
outputIos=$(eas build:version:get -p ios)
|
||||||
outputAndroid=$(eas build:version:get -p android)
|
outputAndroid=$(eas build:version:get -p android)
|
||||||
currentIosVersion=${outputIos#*buildNumber - }
|
currentIosVersion=${outputIos#*buildNumber - }
|
||||||
@@ -8,4 +7,5 @@ currentAndroidVersion=${outputAndroid#*versionCode - }
|
|||||||
BSKY_IOS_BUILD_NUMBER=$((currentIosVersion+1))
|
BSKY_IOS_BUILD_NUMBER=$((currentIosVersion+1))
|
||||||
BSKY_ANDROID_VERSION_CODE=$((currentAndroidVersion+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 $*"
|
||||||
|
|
||||||
Reference in New Issue
Block a user