Skip to content

Commit 0032d9a

Browse files
author
qinhui
committed
feat: add workflow_dispatch for manual publish trigger
1 parent eb202de commit 0032d9a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: ci
2-
on: [push]
2+
on:
3+
push:
4+
workflow_dispatch:
35
jobs:
46
compile:
57
runs-on: ubuntu-latest
@@ -36,7 +38,7 @@ jobs:
3638

3739
publish:
3840
needs: [compile, test]
39-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
41+
if: (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch'
4042
runs-on: ubuntu-latest
4143
permissions:
4244
id-token: write

0 commit comments

Comments
 (0)