forked from fossasia/pslab-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (40 loc) · 1.27 KB
/
action.yml
File metadata and controls
45 lines (40 loc) · 1.27 KB
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
name: "iOS Workflow"
inputs:
VERSION_NAME:
description: 'Version Name to be used for build'
required: false
default: '1.0.0'
VERSION_CODE:
description: 'Version Code to be used for build'
required: true
default: '1'
runs:
using: "composite"
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: false # TODO set to <true> after https://github.com/actions/runner/issues/449 is fixed
flutter-version-file: pubspec.yaml
- name: Update Podfile
shell: bash
run: |
cd ./iOS
flutter pub get
pod install --repo-update
- name: Build iOS IPA (No code signing for PRs)
if: ${{ github.event_name == 'pull_request' }}
shell: bash
env:
VERSION_NAME: ${{ inputs.VERSION_NAME }}
VERSION_CODE: ${{ inputs.VERSION_CODE }}
run: |
flutter build ipa --no-codesign --build-name $VERSION_NAME --build-number $VERSION_CODE
- name: Build iOS IPA (With Code Signing)
if: ${{ github.event_name != 'pull_request' }}
shell: bash
env:
VERSION_NAME: ${{ inputs.VERSION_NAME }}
VERSION_CODE: ${{ inputs.VERSION_CODE }}
run: |
flutter build ipa --build-name $VERSION_NAME --build-number $VERSION_CODE