-
Notifications
You must be signed in to change notification settings - Fork 23
63 lines (61 loc) · 2.34 KB
/
push.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
56
57
58
59
60
61
62
63
name: On push
on:
push:
branches:
- master
jobs:
test-publish:
name: Test + Publish
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-
- name: Install
run: |
cp mock-Secrets.plist the-blue-alliance-ios/Secrets.plist
bundle install
bundle exec pod install --repo-update
bundle exec fastlane run setup_ci
bundle exec fastlane setup_secrets
env:
TBA_API_KEY: ${{ secrets.TBA_API_KEY }}
- name: fastlane test
if: ${{ !contains(github.event.head_commit.message, '[clowntown]') }}
run: bundle exec fastlane test
- name: fastlane beta_ci
if: ${{ contains(github.event.head_commit.message, '[beta]') }}
run: bundle exec fastlane beta_ci
env:
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
MATCH_GIT_REPO: ${{ secrets.MATCH_GIT_REPO }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
SLACK_URL: ${{ secrets.SLACK_URL }}
- name: fastlane app_store
if: ${{ contains(github.event.head_commit.message, '[app_store]') }}
run: bundle exec fastlane app_store
env:
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
MATCH_GIT_REPO: ${{ secrets.MATCH_GIT_REPO }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
SLACK_URL: ${{ secrets.SLACK_URL }}