2021-09-27 17:33:22 +00:00
|
|
|
name: Beta deployment
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
#branches:
|
|
|
|
# - master
|
|
|
|
tags:
|
|
|
|
- 'v*-b*'
|
|
|
|
#tags-ignore:
|
|
|
|
# - 'v*-*'
|
|
|
|
|
|
|
|
env:
|
|
|
|
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
|
|
|
|
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
|
|
|
|
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
|
|
|
|
FASTLANE_USERNAME: ${{ secrets.FASTLANE_USERNAME }}
|
|
|
|
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 }}
|
2021-10-01 11:15:50 +00:00
|
|
|
PILOT_BETA_APP_FEEDBACK: ${{ secrets.PILOT_BETA_APP_FEEDBACK }}
|
2021-09-27 17:33:22 +00:00
|
|
|
APPCENTER_OWNER_NAME: ${{ secrets.APPCENTER_OWNER_NAME }}
|
|
|
|
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
submit_appstore:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # for proper build number
|
|
|
|
submodules: true
|
|
|
|
- name: Prepare Ruby bundle
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 2.7
|
|
|
|
bundler-cache: true
|
|
|
|
- name: Select Xcode version
|
|
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
|
|
with:
|
|
|
|
xcode-version: latest-stable
|
|
|
|
- name: Cache CocoaPods
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: Pods
|
|
|
|
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pods-
|
|
|
|
- name: Prepare for fastlane match
|
|
|
|
run: |
|
|
|
|
scripts/recognize-match-hostname.sh
|
|
|
|
bundle exec fastlane run create_keychain name:"$MATCH_KEYCHAIN_NAME" password:"$MATCH_KEYCHAIN_PASSWORD"
|
|
|
|
ci/update-certs.sh mac development
|
|
|
|
ci/update-certs.sh ios development
|
|
|
|
- name: Build (macOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
|
|
|
ci/beta-archive.sh mac
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Clean up
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
|
|
|
scripts/reset-archive.sh
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Build (iOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
|
|
|
ci/beta-archive.sh ios
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Send to App Store (macOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
|
|
|
ci/set-build-changelog.sh mac
|
|
|
|
ci/store-deploy.sh mac
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Submit to TestFlight (iOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
|
|
|
ci/set-build-changelog.sh ios
|
|
|
|
ci/beta-deploy.sh ios
|