Skip to content

Commit 5fdbf8b

Browse files
author
lask
authored
(#9) Add trigger by workflow_dispatch
1 parent 95a5d0c commit 5fdbf8b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish new plugin version
2-
on:
2+
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- release
@@ -12,6 +13,11 @@ jobs:
1213
- uses: actions/checkout@v2
1314
- uses: dart-lang/setup-dart@v1
1415

16+
- name: Checkout to release branch
17+
run: |
18+
git fetch
19+
git checkout ${{ github.ref_name }}
20+
1521
- name: Create credentials file
1622
run: echo $PUB_CREDENTIALS > ~/pub-credentials.json
1723
env:

0 commit comments

Comments
 (0)