1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v2
14- - uses : dart-lang/setup-dart@v1
14+ - uses : dart-lang/setup-dart@v1.3
1515 with :
16- sdk : 2.18.0
16+ sdk : stable
1717 - id : install
1818 name : Install dependencies
1919 run : dart pub get
@@ -24,19 +24,33 @@ jobs:
2424 runs-on : ubuntu-latest
2525 steps :
2626 - uses : actions/checkout@v2
27- - uses : dart-lang/setup-dart@v1
27+ - uses : dart-lang/setup-dart@v1.3
2828 with :
29- sdk : 2.18.0
29+ sdk : stable
3030 - id : install
3131 name : Install dependencies
3232 run : dart pub get
3333 - name : Test
3434 if : always() && steps.install.outcome == 'success'
35- run : dart run test
35+ run : dart test
36+ analyze :
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v2
40+ - uses : dart-lang/setup-dart@v1.3
41+ with :
42+ sdk : stable
43+ - id : install
44+ name : Install dependencies
45+ run : dart pub get
46+ - name : Analyze
47+ if : always() && steps.install.outcome == 'success'
48+ run : dart analyze
3649 create-tag-and-release :
3750 needs :
3851 - lint
3952 - test
53+ - analyze
4054 runs-on : ubuntu-latest
4155 if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
4256 steps :
6478 if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
6579 steps :
6680 - uses : actions/checkout@master
67- - name : Publish to pub.dev
68- uses : comigor/actions/pub-publish@master
69- env :
70- PUB_CREDENTIALS : ${{ secrets.PUB_CREDENTIALS }}
81+ - uses : dart-lang/setup-dart@v1.3
7182 with :
72- pub_credentials : ${{ secrets.PUB_CREDENTIALS }}
83+ sdk : stable
84+ - id : install
85+ name : Install dependencies
86+ run : dart pub get
87+ - name : Publish to pub.dev
88+ run : |
89+ mkdir -p ~/.pub-cache/credentials.json
90+ echo "${{ secrets.PUB_CREDENTIALS }}" > ~/.config/dart/pub-credentials.json
91+ echo y | dart pub publish
0 commit comments