Skip to content

Commit 57dc4f8

Browse files
committed
add github workflows
1 parent 2b80149 commit 57dc4f8

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build Checks
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ./example
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Flutter action
18+
uses: subosito/flutter-action@v1.4.0
19+
with:
20+
channel: stable
21+
- name: flutter analyze
22+
run: flutter analyze

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to Pub.dev
2+
3+
on: create
4+
5+
jobs:
6+
publishing:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: 'Checkout'
10+
uses: actions/checkout@v2
11+
12+
- name: '>> Dart package <<'
13+
uses: k-paxian/dart-package-publisher@master
14+
with:
15+
flutter: true
16+
skipTests: true
17+
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
18+
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}

0 commit comments

Comments
 (0)