Skip to content

Commit 51412e7

Browse files
authored
Update publish.yaml
1 parent 3342a4b commit 51412e7

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,30 @@ on:
55
types: [published]
66

77
jobs:
8-
publish:
9-
8+
build:
109
runs-on: ubuntu-latest
11-
1210
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v1
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
1528
- name: Publish
16-
uses: sakebook/actions-flutter-pub-publisher@v1.3.1
29+
uses: k-paxian/dart-package-publisher@v1.5.1
1730
with:
18-
credential: ${{ secrets.CREDENTIAL_JSON }}
19-
flutter_package: true
20-
skip_test: true
21-
dry_run: false
31+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
32+
flutter: true
33+
skipTests: true
34+
force: true

0 commit comments

Comments
 (0)