Skip to content

Commit 4bd5871

Browse files
ci: update publish workflow to trigger on workflow_dispatch
1 parent a3209e1 commit 4bd5871

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish
22

33
on:
4-
pull_request:
5-
types: [closed]
6-
branches: [main]
4+
workflow_dispatch:
75

86
permissions:
97
contents: write
@@ -12,9 +10,7 @@ permissions:
1210
jobs:
1311
publish:
1412
runs-on: ubuntu-latest
15-
if: |
16-
github.event.pull_request.merged == true &&
17-
github.event.pull_request.head.ref == 'release'
13+
if: github.ref == 'refs/heads/main'
1814
environment: production
1915
steps:
2016
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)