-
Notifications
You must be signed in to change notification settings - Fork 64
41 lines (38 loc) · 1.11 KB
/
publish.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
name: Publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
JAVA_VERSION: "17.x"
JAVA_DISTRIBUTION: "zulu"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- uses: dart-lang/setup-dart@v1
- name: Install fvm
run: |
dart pub global activate fvm 3.1.4
fvm install
- name: Install melos
run: dart pub global activate melos 6.0.0
- name: Install dependencies
run: melos bs
- name: Run dart analyze
run: melos analyze
- name: build iOS example project
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build ios --release --no-codesign
- name: build android example project
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build apk
# disabled for now, because will fail with multi-package setup
# - name: publish --dry-run
# run: flutter pub publish --dry-run