17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 1 # Use shallow clone for faster checkout
20
22
21
23
- name : Check broken links
22
24
uses : JustinBeckwith/linkinator-action@v1
@@ -29,10 +31,19 @@ jobs:
29
31
distribution : ' zulu'
30
32
java-version : ' 11'
31
33
34
+ - name : Get Flutter version by FVM
35
+ uses : kuhnroyal/flutter-fvm-config-action@v2
36
+ id : fvm-config-action
37
+ with :
38
+ path : " .fvmrc"
39
+
32
40
- name : Flutter action
33
41
uses : subosito/flutter-action@v2
34
42
with :
35
- channel : ' stable'
43
+ flutter-version : ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
44
+ channel : ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
45
+ architecture : x64
46
+ cache : true
36
47
37
48
- name : Install dependencies
38
49
run : flutter pub get
@@ -52,27 +63,16 @@ jobs:
52
63
flutter build web
53
64
54
65
# - name: Upload coverage to Codecov
55
- # if: ${{ matrix.channel == 'stable' }}
56
66
# uses: codecov/codecov-action@v3
57
67
# with:
58
68
# files: coverage/lcov.info
59
69
# flags: unittests
60
70
# name: form_builder_file_picker
61
71
62
72
deployment :
63
- if : ${{ github.ref_type == 'tag' }}
64
- needs : build
65
- name : Deploy package
66
73
permissions :
67
74
id-token : write
68
- runs-on : ubuntu-latest
69
- steps :
70
- - uses : actions/checkout@v4
71
- - uses : dart-lang/setup-dart@v1
72
- - name : Flutter action
73
- uses : subosito/flutter-action@v2
74
- with :
75
- channel : ' stable'
76
- - name : Publish package
77
- run : dart pub publish -v -f
75
+ uses : flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
76
+ if : ${{ github.ref_type == 'tag' }}
77
+ needs : build
78
78
0 commit comments