2021-10-01 18:20:03 +00:00
|
|
|
name: beta
|
2021-09-27 17:33:22 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-10-08 08:31:01 +00:00
|
|
|
branches:
|
2021-10-11 07:52:40 +00:00
|
|
|
- 'master'
|
|
|
|
- 'stable'
|
2021-10-08 08:31:01 +00:00
|
|
|
#tags:
|
|
|
|
# - 'v*-b*'
|
2021-09-27 17:33:22 +00:00
|
|
|
#tags-ignore:
|
|
|
|
# - 'v*-*'
|
|
|
|
|
|
|
|
env:
|
2021-10-16 09:47:25 +00:00
|
|
|
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
|
2021-09-27 17:33:22 +00:00
|
|
|
FASTLANE_USERNAME: ${{ secrets.FASTLANE_USERNAME }}
|
|
|
|
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
|
|
|
|
|
|
|
jobs:
|
2021-10-15 20:23:41 +00:00
|
|
|
test_or_upload_to_app_store:
|
2021-09-27 17:33:22 +00:00
|
|
|
runs-on: macos-10.15
|
|
|
|
timeout-minutes: 60
|
2021-10-05 09:24:55 +00:00
|
|
|
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 }}
|
2021-10-15 20:23:41 +00:00
|
|
|
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 }}
|
|
|
|
CHANGELOG_PREFACE: ${{ secrets.CHANGELOG_PREFACE }}
|
2021-09-27 17:33:22 +00:00
|
|
|
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:
|
|
|
|
bundler-cache: true
|
|
|
|
- name: Select Xcode version
|
|
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
|
|
with:
|
|
|
|
xcode-version: latest-stable
|
|
|
|
- name: Cache CocoaPods
|
2021-10-05 17:47:08 +00:00
|
|
|
uses: actions/cache@v2
|
2021-09-27 17:33:22 +00:00
|
|
|
with:
|
2021-10-05 17:47:08 +00:00
|
|
|
path: |
|
|
|
|
Pods
|
2021-09-27 17:33:22 +00:00
|
|
|
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pods-
|
|
|
|
- name: Prepare for fastlane match
|
|
|
|
run: |
|
2021-10-05 08:55:40 +00:00
|
|
|
scripts/ci/recognize-match-hostname.sh
|
2021-10-04 17:21:14 +00:00
|
|
|
bundle exec fastlane preinstall_development_certs
|
2021-10-11 07:52:40 +00:00
|
|
|
- name: Run tests (macOS)
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
run: |
|
|
|
|
bundle exec fastlane --env mac test_target
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Build (macOS)
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
2021-10-04 17:21:14 +00:00
|
|
|
bundle exec fastlane --env mac,beta create_archive
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Build (iOS)
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
2021-10-04 17:21:14 +00:00
|
|
|
bundle exec fastlane --env ios,beta create_archive
|
2021-10-15 20:23:41 +00:00
|
|
|
- name: Submit to TestFlight (macOS)
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-05 09:24:55 +00:00
|
|
|
run: |
|
2021-10-15 20:23:41 +00:00
|
|
|
export PILOT_CHANGELOG=`ci/build-changelog.sh mac`
|
|
|
|
export PILOT_PKG="dist/mac/Passepartout.pkg"
|
|
|
|
bundle exec fastlane --env mac,beta store_beta
|
|
|
|
- name: Submit to TestFlight (iOS)
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-05 09:24:55 +00:00
|
|
|
run: |
|
2021-10-15 20:23:41 +00:00
|
|
|
export PILOT_CHANGELOG=`ci/build-changelog.sh ios`
|
|
|
|
export PILOT_IPA="dist/ios/Passepartout.ipa"
|
|
|
|
bundle exec fastlane --env ios,beta store_beta
|
|
|
|
release_public_beta:
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-08 09:16:30 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-15 20:23:41 +00:00
|
|
|
needs: test_or_upload_to_app_store
|
2021-10-05 09:24:55 +00:00
|
|
|
environment:
|
2021-10-15 20:23:41 +00:00
|
|
|
name: public_beta
|
2021-10-05 09:24:55 +00:00
|
|
|
env:
|
|
|
|
PILOT_USERNAME: ${{ secrets.PILOT_USERNAME }}
|
|
|
|
PILOT_GROUPS: ${{ secrets.PILOT_GROUPS }}
|
2021-10-15 20:23:41 +00:00
|
|
|
PILOT_DISTRIBUTE_ONLY: true
|
2021-10-05 09:24:55 +00:00
|
|
|
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
|
2021-10-04 17:21:14 +00:00
|
|
|
- name: Submit to TestFlight (macOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
2021-10-18 15:26:47 +00:00
|
|
|
export PILOT_APP_VERSION=`ci/version-number.sh mac`
|
2021-10-08 09:16:30 +00:00
|
|
|
export PILOT_BUILD_NUMBER=`ci/build-number.sh mac`
|
2021-10-06 10:58:22 +00:00
|
|
|
bundle exec fastlane --env mac,beta store_beta
|
2021-09-27 17:33:22 +00:00
|
|
|
- name: Submit to TestFlight (iOS)
|
2021-10-01 12:32:08 +00:00
|
|
|
run: |
|
2021-10-18 15:26:47 +00:00
|
|
|
export PILOT_APP_VERSION=`ci/version-number.sh ios`
|
2021-10-08 09:16:30 +00:00
|
|
|
export PILOT_BUILD_NUMBER=`ci/build-number.sh ios`
|
2021-10-06 10:58:22 +00:00
|
|
|
bundle exec fastlane --env ios,beta store_beta
|
2021-10-06 10:24:49 +00:00
|
|
|
submit_for_app_review:
|
2021-10-11 07:52:40 +00:00
|
|
|
if: github.ref == 'refs/heads/stable'
|
2021-10-08 09:16:30 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-19 07:44:26 +00:00
|
|
|
needs: test_or_upload_to_app_store
|
2021-10-06 10:24:49 +00:00
|
|
|
environment:
|
|
|
|
name: app_review
|
|
|
|
env:
|
|
|
|
DELIVER_USERNAME: ${{ secrets.DELIVER_USERNAME }}
|
2021-10-16 13:56:16 +00:00
|
|
|
DELIVER_FORCE: true
|
2021-10-06 10:24:49 +00:00
|
|
|
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 for App Review (macOS)
|
|
|
|
run: |
|
2021-10-18 15:26:47 +00:00
|
|
|
export DELIVER_APP_VERSION=`ci/version-number.sh mac`
|
2021-10-08 09:16:30 +00:00
|
|
|
export DELIVER_BUILD_NUMBER=`ci/build-number.sh mac`
|
2021-10-09 14:53:33 +00:00
|
|
|
bundle exec fastlane --env mac store_review add_id_info_uses_idfa:false
|
2021-10-06 10:24:49 +00:00
|
|
|
- name: Submit for App Review (iOS)
|
|
|
|
run: |
|
2021-10-18 15:26:47 +00:00
|
|
|
export DELIVER_APP_VERSION=`ci/version-number.sh ios`
|
2021-10-08 09:16:30 +00:00
|
|
|
export DELIVER_BUILD_NUMBER=`ci/build-number.sh ios`
|
2021-10-09 14:53:33 +00:00
|
|
|
bundle exec fastlane --env ios store_review add_id_info_uses_idfa:false
|