File tree 1 file changed +10
-30
lines changed
1 file changed +10
-30
lines changed Original file line number Diff line number Diff line change 1
- name : Publish plugin
1
+ name : Publish to pub.dev
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ push :
5
+ tags :
6
+ - ' v[0-9]+.[0-9]+.[0-9]+*'
6
7
7
8
jobs :
8
- build :
9
- runs-on : ubuntu-latest
10
- steps :
11
- - uses : actions/checkout@v2
12
- - name : Install Flutter
13
- uses : subosito/flutter-action@v2
14
- with :
15
- channel : ' stable'
16
- - name : Install project dependencies
17
- run : flutter pub get
18
- - name : Dart Format Check
19
- run : dart format lib/ test/ --set-exit-if-changed
20
- - name : Import Sorter Check
21
- run : flutter pub run import_sorter:main --no-comments --exit-if-changed
22
- - name : Dart Analyze Check
23
- run : flutter analyze
24
- - name : Dart Test Check
25
- run : flutter test
26
- # - name: Check Publish Warnings
27
- # run: dart pub publish --dry-run
28
- - name : Publish
29
- uses : k-paxian/dart-package-publisher@v1.5.1
30
- with :
31
- credentialJson : ${{ secrets.CREDENTIAL_JSON }}
32
- flutter : true
33
- skipTests : true
34
- force : true
9
+ publish :
10
+ permissions :
11
+ id-token : write # Required for authentication using OIDC
12
+ uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
13
+ # with:
14
+ # working-directory: path/to/package/within/repository
You can’t perform that action at this time.
0 commit comments