4
4
push :
5
5
branches : [main]
6
6
tags :
7
- - ' *'
7
+ - ' [0-9]+.[0-9]+.[0-9]+ *'
8
8
9
9
pull_request :
10
10
branches : [main]
14
14
jobs :
15
15
build :
16
16
runs-on : macos-latest
17
- strategy :
18
- fail-fast : false
19
- matrix :
20
- channel : [stable, beta]
21
17
22
18
steps :
23
19
- uses : actions/checkout@v3
30
26
- name : Flutter action
31
27
uses : subosito/flutter-action@v2
32
28
with :
33
- channel : ${{ matrix.channel }}
29
+ channel : ' stable '
34
30
35
31
- name : Install dependencies
36
32
run : flutter pub get
49
45
flutter build ios --debug --no-codesign
50
46
51
47
- name : Upload coverage to Codecov
52
- if : ${{ matrix.channel == 'stable' }}
53
48
uses : codecov/codecov-action@v3
54
49
with :
55
50
files : coverage/lcov.info
@@ -60,30 +55,15 @@ jobs:
60
55
if : ${{ github.ref_type == 'tag' }}
61
56
needs : build
62
57
name : Deploy package
58
+ permissions :
59
+ id-token : write
63
60
runs-on : ubuntu-latest
64
-
65
61
steps :
66
- - name : Configure enviroment
67
- uses : actions/checkout@v3
68
- - name : Download flutter
69
- uses : subosito/flutter-action@v2
70
- with :
71
- channel : ' stable'
72
- - name : Setup pub credentials
73
- shell : bash
74
- env :
75
- PUB_DEV_PUBLISH_ACCESS_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
76
- PUB_DEV_PUBLISH_REFRESH_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
77
- run : |
78
- sh ./tool/pub_login.sh
79
- - name : Publish package
80
- run : dart pub publish -v -f
81
- - name : Build changelog
82
- id : github_release
83
- uses : mikepenz/release-changelog-builder-action@v3
84
- env :
85
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86
- - name : Create release
87
-
88
- with :
89
- body : ${{steps.github_release.outputs.changelog}}
62
+ - uses : actions/checkout@v3
63
+ - uses : dart-lang/setup-dart@v1
64
+ - name : Flutter action
65
+ uses : subosito/flutter-action@v2
66
+ with :
67
+ channel : ' stable'
68
+ - name : Publish package
69
+ run : dart pub publish -v -f
0 commit comments