forked from fleaflet/flutter_map
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (91 loc) · 2.79 KB
/
master.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: "'fleaflet/flutter_map' 'master' CI/CD"
on:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build-android:
name: "Build Android Example App"
runs-on: ubuntu-latest
if: github.repository == 'fleaflet/flutter_map'
defaults:
run:
working-directory: ./example
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Java 17 Environment
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Build Android Application
run: flutter build apk
- name: Archive Artifact
uses: actions/[email protected]
with:
name: apk-build
path: example/build/app/outputs/apk/release
if-no-files-found: error
build-windows:
name: "Build Windows Example App"
runs-on: windows-latest
if: github.repository == 'fleaflet/flutter_map'
defaults:
run:
working-directory: ./example
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Build Windows Application
run: flutter build windows
- name: Create Windows Application Installer
run: iscc "windowsApplicationInstallerSetup.iss"
working-directory: .
- name: Archive Artifact
uses: actions/[email protected]
with:
name: exe-build
path: windowsTemp/WindowsApplication.exe
if-no-files-found: error
build-web:
name: "Build & Deploy Web Example App"
runs-on: ubuntu-latest
if: github.repository == 'fleaflet/flutter_map'
defaults:
run:
working-directory: ./example
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Build Web Application
run: flutter build web --web-renderer canvaskit
- name: Archive Artifact
uses: actions/[email protected]
with:
name: web-build
path: example/build/web
if-no-files-found: error
- name: Publish Live Web App
uses: FirebaseExtended/action-hosting-deploy@main
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLEAFLET }}"
channelId: live
projectId: fleaflet-firebase