-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (61 loc) · 1.9 KB
/
ci-build-ios.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
64
65
66
67
68
69
70
71
72
name: Build iOS project
on:
workflow_dispatch:
inputs:
version:
type: string
required: true
description: "Version name"
workflow_call:
inputs:
version:
type: string
required: true
description: "Version name"
jobs:
build:
name: Build project
runs-on: macos-14
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Setup dependencies: Node"
uses: actions/setup-node@v4
- name: "Install dependencies"
uses: Macro-Deck-App/Actions/setup-ionic@main
- name: "Build Ionic app"
run: ionic build -c production
- name: "Sync iOS project"
run: cap sync ios
- name: "Install SSH key"
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.FASTLANE_CERTIFICATES_KEY }}
- name: "Cache bundles"
uses: actions/cache@v3
with:
key: "ios-bundle-${{ hashFiles('ios/Gemfile') }}"
path: ios/App/vendor/bundle
- name: "Build project"
env:
VERSION_NUMBER: ${{ inputs.version }}
KEY_ID: ${{secrets.APPSTORE_KEY_ID}}
ISSUER_ID: ${{secrets.APPSTORE_KEY_ISSUER_ID}}
KEY_CONTENT: ${{secrets.APPSTORE_KEY_CONTENT}}
MATCH_PASSWORD: ${{secrets.MATCH_PASSWORD}}
run: |
export BUILD_NUMBER=$(( ${{ github.run_number }} + 3000 ))
cd ios/App
which bundle || gem install bundler
bundle config path vendor/bundle
bundle install
bundle exec fastlane build
- name: "Upload"
env:
KEY_ID: ${{secrets.APPSTORE_KEY_ID}}
ISSUER_ID: ${{secrets.APPSTORE_KEY_ISSUER_ID}}
KEY_CONTENT: ${{secrets.APPSTORE_KEY_CONTENT}}
CHANGELOG: ${{ github.event.head_commit.message }}
run: |
cd ios/App
bundle exec fastlane release