forked from avinashkranjan/Friday
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) 路 1004 Bytes
/
Copy pathCI.yml
File metadata and controls
42 lines (32 loc) 路 1004 Bytes
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: Build and Deploy
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.x' # Replace with the desired Flutter version
- name: Install Dependencies
run: flutter pub get
- name: Build Android
run: flutter build apk
- name: Build iOS
run: flutter build ios
# Add more steps for other build targets (web, macOS, etc.) if needed
- name: Archive Artifacts
uses: actions/upload-artifact@v2
with:
name: Build Artifacts
path: |
build/app/outputs/apk/release/app-release.apk
build/ios/archive/Runner.xcarchive
# Add deployment steps here (e.g., upload artifacts, deploy to app store, etc.)