We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1594042 commit 7983fa5Copy full SHA for 7983fa5
.github/workflows/publish.yml
@@ -1,18 +1,21 @@
1
name: Publish to Pub.dev
2
3
# 流程触发时机,当有标签创建时触发,如 v1.0.0。当然也可以选择别的触发时机,如 push,release 等
4
-on: create
+on:
5
+ push:
6
+ tags:
7
+ - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v'
8
9
jobs:
10
publishing:
11
runs-on: ubuntu-latest
12
steps:
13
# 拉去仓库代码
14
- name: "Checkout"
- uses: actions/checkout@v2
15
+ uses: actions/checkout@main
16
# 发布插件
17
- name: Dart and Flutter Package Publisher
- uses: k-paxian/dart-package-publisher@v1.2
18
+ uses: k-paxian/dart-package-publisher@master
19
with:
20
# 设置发布插件需要的 Token
21
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
0 commit comments