-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.92 KB
/
main.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
name: Main Branch Commit
on:
push:
branches: [ 'main' ]
schedule:
# At 5:30 am on the 1st and 15th day of the month (every two weeks)
- cron: '30 5 1,15 * *'
workflow_dispatch:
env:
XCODE_VERSION: '15.2'
CURRENT_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
jobs:
main:
runs-on: macos-13
steps:
# Checkout the repository under $GITHUB_WORKSPACE
- name: Checkout Project
uses: actions/checkout@v3
# Ensure correct Xcode version is installed.
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
# Set Ruby version and Cache RubyGem dependencies
- name: Cache RubyGem Dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
# Generate build number
- name: Generate Build Number
uses: onyxmueller/build-tag-number@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
# Build & Distribute
- name: Run Fastlane
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATCH_GIT_AUTHORIZATION: ${{ secrets.MATCH_GIT_AUTHORIZATION }}
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
DEVELOPER_PORTAL_TEAM_ID: ${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}
CODE_SIGNING_IDENTITY: ${{ secrets.CODE_SIGNING_IDENTITY }}
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
TEMP_KEYCHAIN_NAME: ${{ secrets.TEMP_KEYCHAIN_NAME }}
HOST_NAME: ${{ secrets.HOST_NAME }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
uses: maierj/[email protected]
with:
lane: 'main'