-
-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (37 loc) · 938 Bytes
/
cicd.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
name: CI/CD
on:
push:
branches:
- main
- staging
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build & Release
runs-on: macos-15
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Fastlane Build - Beta
if: github.ref == 'refs/heads/staging'
uses: maierj/[email protected]
with:
lane: 'beta'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fastlane Build - Production
if: github.ref == 'refs/heads/main'
uses: maierj/[email protected]
with:
lane: 'production'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}