Create publish.yml

This commit is contained in:
kuloud 2023-12-26 13:30:24 +08:00 committed by GitHub
parent 02e0a31e93
commit 2fc6b55463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Publish to Pub.dev
on:
release:
types: [published]
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@main # required!
- name: '>> Dart package <<'
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}