From 803fb795085c7a6ff5e18e2ba2e7a8ec9052794c Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 24 Mar 2021 14:41:14 +0700 Subject: [PATCH] Add github actions to publish to pub.dev --- .github/workflows/dart-publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/dart-publish.yml diff --git a/.github/workflows/dart-publish.yml b/.github/workflows/dart-publish.yml new file mode 100644 index 0000000..f52008c --- /dev/null +++ b/.github/workflows/dart-publish.yml @@ -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 }} \ No newline at end of file