forked from SchweizerischeBundesbahnen/design_system_flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 947 Bytes
/
nightly-build.yaml
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
name: Nightly built.
on:
workflow_dispatch:
schedule:
- cron: "20 2 * * *" # 02:20 am every day
jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
defaults:
run:
working-directory: example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- run: flutter pub get
- name: Build appbundle.
run: flutter build appbundle --profile --no-pub
build-iOS:
name: Build iOS
runs-on: macos-latest
defaults:
run:
working-directory: example
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter pub get
- name: Build iOS package
run: flutter build ios --simulator