Skip to content

Commit 898f5cf

Browse files
Create publish.yml
1 parent a3e540b commit 898f5cf

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
release:
3+
branches:
4+
- master
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Install Flutter
11+
uses: subosito/flutter-action@v2
12+
with:
13+
flutter-version: '3.3.3'
14+
cache: true
15+
- name: Install dependencies
16+
run: flutter pub get
17+
- name: Analyze
18+
run: flutter analyze
19+
- name: Run tests
20+
run: flutter test
21+
- name: Format code
22+
run: dart format --fix .
23+
- name: Check Publish Warnings
24+
run: dart pub publish --dry-run
25+
- name: Publish
26+
uses: k-paxian/dart-package-publisher@v1.5.1
27+
with:
28+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
29+
flutter: true

0 commit comments

Comments
 (0)