Attempt to fix Xcode CI #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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- | |
- name: Install | |
run: | | |
cp mock-Secrets.plist the-blue-alliance-ios/Secrets.plist | |
bundle install | |
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 }} |