Add github actions to publish to pub.dev
This commit is contained in:
parent
9cfa2e525e
commit
803fb79508
19
.github/workflows/dart-publish.yml
vendored
Normal file
19
.github/workflows/dart-publish.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Publish to Pub.dev
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publishing:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: '>>> Checkout'
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: '>>> Publish Dart Package'
|
||||||
|
uses: k-paxian/dart-package-publisher@master
|
||||||
|
with:
|
||||||
|
accessToken: ${{ secrets.PUB_DEV_OAUTH_ACCESS_TOKEN }}
|
||||||
|
refreshToken: ${{ secrets.PUB_DEV_OAUTH_REFRESH_TOKEN }}
|
Loading…
Reference in New Issue
Block a user