-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.97 KB
/
deploy_production_selfHosted.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: DeployProduction-selfHosted
on:
workflow_dispatch:
jobs:
deploy:
name: Deploying to Testflight
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Install bundle
run: bundle install
- name: Install pods
run: bundle exec pod install
# - name: GIT setup config
# run: |
# git config --global user.name "CI"
# git config --global user.email "[email protected]"
- name: Deploy iOS Production to TestFlight via Fastlane
uses: maierj/[email protected]
with:
lane: deploy_production
env:
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 10
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 100
APP_STORE_CONNECT_TEAM_ID: '${{ secrets.APP_STORE_CONNECT_TEAM_ID }}'
APPSTORE_CONNECT_APP_ID: '${{ secrets.APPSTORE_CONNECT_APP_ID }}'
BUNDLE_IDENTIFIER: '${{ secrets.BUNDLE_IDENTIFIER }}'
APPLE_ID: '${{ secrets.APPLE_ID }}'
DEVELOPER_PORTAL_TEAM_ID: '${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}'
MATCH_PASSWORD: '${{ secrets.MATCH_PASSWORD }}'
GIT_AUTHORIZATION: '${{ secrets.GIT_AUTHORIZATION }}'
TEMP_KEYCHAIN_PASSWORD: '${{ secrets.TEMP_KEYCHAIN_PASSWORD }}'
TEMP_KEYCHAIN_USER: '${{ secrets.TEMP_KEYCHAIN_USER }}'
API_KEY_ID: '${{ secrets.API_KEY_ID }}'
API_KEY_ISSUER_ID: '${{ secrets.API_KEY_ISSUER_ID }}'
API_KEY: '${{ secrets.API_KEY }}'
FIREBASE_APP_ID: '${{ secrets.FIREBASE_APP_ID }}'
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}