-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (40 loc) · 1.27 KB
/
ios_build_and_commit_files.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
name: IOS build and commit files
on:
push:
branches:
- ios-update-files
jobs:
flutter-build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set xcode version via env file
run: cat .github/env >> $GITHUB_ENV
- name: prepare xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: $XCODE_VERSION
- name: Install flutter wrapper
run: ./scripts/install_flutter_wrapper.sh
- name: Get dependencies (i.e., melos)
run: .flutter/bin/dart pub get
- name: Melos Bootstrap
run: .flutter/bin/dart run melos bootstrap
- name: Install dependencies (pod install)
run: |
cd ios
pod install
# Build the Flutter app
- name: Build Flutter app
run: .flutter/bin/dart run melos build-ipa-debug
# Check for changes and commit
- name: Commit changes
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add .
git commit -m "Run pod install and build app [skip ci]" || echo "No changes to commit."
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}