Add github actions to publish to pub.dev

This commit is contained in:
Sambo Chea 2021-03-24 14:41:14 +07:00
parent 9cfa2e525e
commit 803fb79508

19
.github/workflows/dart-publish.yml vendored Normal file
View 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 }}