This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
71 lines (59 loc) · 2.09 KB
/
archive_workflow.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
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
name: Archive
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
runs-on: macos-latest
name: build
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
with:
channel: "stable"
- run: flutter --version
- name: Set up JDK
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93
with:
distribution: "zulu"
java-version: "17"
- name: Build Flutter AAR file
working-directory: flutter_nps
run: flutter build aar
- name: Create Flutter AAR artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: flutter-aar
path: flutter_nps/build/host/outputs/repo
- name: Convert module to app for web
working-directory: flutter_nps
run: |
perl -i -pe's/module/app/g' .metadata
flutter create . --platforms web --org com.example.flutter_nps
rm test/widget_test.dart
flutter build web
perl -i -pe's/<base href=\"\/\"/<base href=\"\.\/\"/g' index.html
- name: Create Flutter web project artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: flutter-web-project
path: flutter_nps/build/web
- name: Build Flutter Module for IOS
working-directory: flutter_nps
run: flutter build ios-framework
- name: Create Flutter Framework artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: flutter-framework
path: flutter_nps/build/ios/framework
- name: Create Flutter pod helper artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: ios-podhelper
path: flutter_nps/.ios/Flutter