Skip to content

Commit c01bbdf

Browse files
added publish.yml
1 parent 53d0147 commit c01bbdf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.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+
- name: Install dependencies
15+
run: flutter pub get
16+
- name: Analyze
17+
run: flutter analyze
18+
- name: Run tests
19+
run: flutter test
20+
- name: Format code
21+
run: dart format --fix .
22+
- name: Check Publish Warnings
23+
run: dart pub publish --dry-run
24+
- name: Publish
25+
uses: k-paxian/[email protected]
26+
with:
27+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
28+
flutter: true
29+
skipTests: true

0 commit comments

Comments
 (0)