Skip to content

Update README.md

Update README.md #11

Workflow file for this run

name: Publish to Pub.dev
# 流程触发时机,当有标签创建时触发,如 v1.0.0。当然也可以选择别的触发时机,如 push,release 等
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v'
on:

Check failure on line 8 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v'
jobs:
publishing:
runs-on: ubuntu-latest
steps:
# 拉去仓库代码
- name: 'Checkout'
uses: actions/checkout@main # required!
# 发布插件
- name: '>> Publich package to pub.dev <<'
uses: k-paxian/dart-package-publisher@master
with:
# 设置发布插件需要的 Token
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}