Skip to content

Commit 3d99046

Browse files
Merge pull request #18 from konstantinullrich/feature/publish-workflow
Add publish workflow
2 parents d2aee9b + 402695f commit 3d99046

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- name: Install dependencies
2020
run: pub get
21+
2122
- name: Run tests
2223
run: pub run test

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publishing:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Publish package
18+
uses: k-paxian/[email protected]
19+
with:
20+
accessToken: ${{ secrets.GOOGLE_OAUTH_ACCESS_TOKEN }}
21+
refreshToken: ${{ secrets.GOOGLE_OAUTH_REFRESH_TOKEN }}

0 commit comments

Comments
 (0)