-
Notifications
You must be signed in to change notification settings - Fork 65
56 lines (49 loc) · 2.44 KB
/
release.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
53
54
55
name: Develop Release
on:
push:
branches:
- develop
env:
LANG: en_US.UTF-8
# S3 details - credentials should be stored as repo Secrets
FOLDER: ios-base
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
KEYS_BUCKET: ${{ secrets.AWS_S3_KEYS_BUCKET }}
BUILDS_BUCKET: ${{ secrets.AWS_S3_BUILDS_BUCKET }}
KEYCHAIN_NAME: 'fastlane_tmp_keychain'
KEYCHAIN_PASSWORD: ''
# iOS Release - all sensitive values should be stored as repo Secrets
APPLE_PROFILE: ${{ secrets.APPLE_PROFILE }} # Filename for the provisioning profile, eg AppStore_comrootstraiosbasedevelop.mobileprovision
APPLE_CERT: ${{ secrets.APPLE_CERT }} # Filename for the distribution certificate (.cer) that should be uploaded to S3 bucket
APPLE_KEY: ${{ secrets.APPLE_KEY }} # Filename for the key (.p12) that should be uploaded to S3 bucket
APPLE_KEY_PASSWORD: ${{ secrets.APPLE_KEY_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID}} # Organization's team ID in the Developer Portal
FASTLANE_ITC_TEAM_ID: ${{ secrets.APPLE_TEAM_ITC_ID}} # iTunes connect team ID
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
# Apple Application-specific password for uploading to TestFlight
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_FILE: ${{ secrets.APP_STORE_CONNECT_API_KEY_FILE }}
# Notifications
SLACK_URL: ${{ secrets.SLACK_URL }}
SLACK_CHANNEL: '#dev-releases'
jobs:
ios:
runs-on: macmini
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v2
# Downloads certificate, private key and Firebase file
- name: Download code signing items
run: |
aws s3 cp s3://$KEYS_BUCKET/$FOLDER/ . --recursive
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
mv ./$APPLE_PROFILE ~/Library/MobileDevice/Provisioning\ Profiles/$APPLE_PROFILE
# Runs build and archives for AdHoc distribution
# Pushes build to AWS S3
# Sends Slack notification
- name: Build with Fastlane
run: bundle exec fastlane release_develop