Split upload and TestFlight jobs
This commit is contained in:
parent
adee0a6e06
commit
12e8570fcb
|
@ -3,5 +3,6 @@ MATCH_TYPE="appstore"
|
||||||
GYM_EXPORT_METHOD="app-store"
|
GYM_EXPORT_METHOD="app-store"
|
||||||
GYM_SKIP_PACKAGE_PKG="false"
|
GYM_SKIP_PACKAGE_PKG="false"
|
||||||
DEMO_ACCOUNT_REQUIRED="true"
|
DEMO_ACCOUNT_REQUIRED="true"
|
||||||
|
PILOT_DISTRIBUTE_ONLY="true"
|
||||||
PILOT_DISTRIBUTE_EXTERNAL="true"
|
PILOT_DISTRIBUTE_EXTERNAL="true"
|
||||||
PILOT_BETA_APP_DESCRIPTION="Passepartout is a non-official, user-friendly OpenVPN® client."
|
PILOT_BETA_APP_DESCRIPTION="Passepartout is a non-official, user-friendly OpenVPN® client."
|
||||||
|
|
2
.env.ios
2
.env.ios
|
@ -3,6 +3,6 @@ APP_ROOT="Passepartout/App/iOS"
|
||||||
MATCH_PLATFORM="ios"
|
MATCH_PLATFORM="ios"
|
||||||
GYM_SCHEME="Passepartout-iOS"
|
GYM_SCHEME="Passepartout-iOS"
|
||||||
DELIVER_PLATFORM="ios"
|
DELIVER_PLATFORM="ios"
|
||||||
PILOT_IPA="$DIST_PATH/$PLATFORM/beta/$APP_NAME.ipa"
|
PILOT_PLATFORM="ios"
|
||||||
APPCENTER_APP_NAME=$GYM_SCHEME
|
APPCENTER_APP_NAME=$GYM_SCHEME
|
||||||
APPCENTER_DISTRIBUTE_IPA="$DIST_PATH/$PLATFORM/dev/$APP_NAME.ipa"
|
APPCENTER_DISTRIBUTE_IPA="$DIST_PATH/$PLATFORM/dev/$APP_NAME.ipa"
|
||||||
|
|
2
.env.mac
2
.env.mac
|
@ -4,6 +4,6 @@ MATCH_PLATFORM="macos"
|
||||||
MATCH_ADDITIONAL_CERT_TYPES="mac_installer_distribution"
|
MATCH_ADDITIONAL_CERT_TYPES="mac_installer_distribution"
|
||||||
GYM_SCHEME="Passepartout-macOS"
|
GYM_SCHEME="Passepartout-macOS"
|
||||||
DELIVER_PLATFORM="osx"
|
DELIVER_PLATFORM="osx"
|
||||||
PILOT_PKG="$DIST_PATH/$PLATFORM/beta/$APP_NAME.pkg"
|
PILOT_PLATFORM="osx"
|
||||||
APPCENTER_APP_NAME=$GYM_SCHEME
|
APPCENTER_APP_NAME=$GYM_SCHEME
|
||||||
APPCENTER_DISTRIBUTE_FILE="$DIST_PATH/$PLATFORM/dev/$APP_NAME.app"
|
APPCENTER_DISTRIBUTE_FILE="$DIST_PATH/$PLATFORM/dev/$APP_NAME.app"
|
||||||
|
|
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
#branches:
|
#branches:
|
||||||
# - master
|
# - master
|
||||||
|
# - stable
|
||||||
tags:
|
tags:
|
||||||
- 'v*-b*'
|
- 'v*-b*'
|
||||||
#tags-ignore:
|
#tags-ignore:
|
||||||
|
@ -15,24 +16,19 @@ env:
|
||||||
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
|
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
|
||||||
FASTLANE_USERNAME: ${{ secrets.FASTLANE_USERNAME }}
|
FASTLANE_USERNAME: ${{ secrets.FASTLANE_USERNAME }}
|
||||||
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
||||||
MATCH_USERNAME: ${{ secrets.MATCH_USERNAME }}
|
|
||||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
|
||||||
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
|
|
||||||
MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }}
|
|
||||||
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
|
|
||||||
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
|
|
||||||
DELIVER_USERNAME: ${{ secrets.DELIVER_USERNAME }}
|
|
||||||
PILOT_USERNAME: ${{ secrets.PILOT_USERNAME }}
|
|
||||||
PILOT_GROUPS: ${{ secrets.PILOT_GROUPS }}
|
|
||||||
PILOT_BETA_APP_FEEDBACK: ${{ secrets.PILOT_BETA_APP_FEEDBACK }}
|
|
||||||
PILOT_BETA_APP_REVIEW_INFO: ${{ secrets.PILOT_BETA_APP_REVIEW_INFO }}
|
|
||||||
APPCENTER_OWNER_NAME: ${{ secrets.APPCENTER_OWNER_NAME }}
|
|
||||||
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload_to_testflight:
|
upload_to_app_store:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
env:
|
||||||
|
MATCH_USERNAME: ${{ secrets.MATCH_USERNAME }}
|
||||||
|
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||||
|
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
|
||||||
|
MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }}
|
||||||
|
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
|
||||||
|
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
|
||||||
|
DELIVER_USERNAME: ${{ secrets.DELIVER_USERNAME }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -42,7 +38,6 @@ jobs:
|
||||||
- name: Prepare Ruby bundle
|
- name: Prepare Ruby bundle
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.7
|
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
- name: Select Xcode version
|
- name: Select Xcode version
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
@ -68,9 +63,39 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
bundle exec fastlane --env ios,beta create_archive
|
bundle exec fastlane --env ios,beta create_archive
|
||||||
scripts/ci/reset-archive.sh
|
scripts/ci/reset-archive.sh
|
||||||
|
- name: Upload to App Store (macOS)
|
||||||
|
run: |
|
||||||
|
bundle exec fastlane --env mac,beta store_deploy
|
||||||
|
- name: Upload to App Store (iOS)
|
||||||
|
run: |
|
||||||
|
bundle exec fastlane --env ios,beta store_deploy
|
||||||
|
submit_to_testflight:
|
||||||
|
runs-on: macos-10.15
|
||||||
|
needs: upload_to_app_store
|
||||||
|
environment:
|
||||||
|
name: testflight
|
||||||
|
env:
|
||||||
|
PILOT_USERNAME: ${{ secrets.PILOT_USERNAME }}
|
||||||
|
PILOT_GROUPS: ${{ secrets.PILOT_GROUPS }}
|
||||||
|
PILOT_BETA_APP_FEEDBACK: ${{ secrets.PILOT_BETA_APP_FEEDBACK }}
|
||||||
|
PILOT_BETA_APP_REVIEW_INFO: ${{ secrets.PILOT_BETA_APP_REVIEW_INFO }}
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: true
|
||||||
|
- name: Prepare Ruby bundle
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
- name: Submit to TestFlight (macOS)
|
- name: Submit to TestFlight (macOS)
|
||||||
run: |
|
run: |
|
||||||
PILOT_CHANGELOG=`ci/build-changelog.sh mac` bundle exec fastlane --env mac,beta beta_deploy
|
export PILOT_CHANGELOG=`ci/build-changelog.sh mac`
|
||||||
|
export PILOT_BUILD_NUMBER=`ci/build-number.sh`
|
||||||
|
bundle exec fastlane --env mac,beta beta_deploy
|
||||||
- name: Submit to TestFlight (iOS)
|
- name: Submit to TestFlight (iOS)
|
||||||
run: |
|
run: |
|
||||||
PILOT_CHANGELOG=`ci/build-changelog.sh ios` bundle exec fastlane --env ios,beta beta_deploy
|
export PILOT_CHANGELOG=`ci/build-changelog.sh ios`
|
||||||
|
export PILOT_BUILD_NUMBER=`ci/build-number.sh`
|
||||||
|
bundle exec fastlane --env ios,beta beta_deploy
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
2.7
|
|
@ -1 +1 @@
|
||||||
Subproject commit 945f273a3d4fd24d3d2e9cf401d42c354946714a
|
Subproject commit 7b09e281671032e6b1460a51b101e9060f907624
|
Loading…
Reference in New Issue