Skip to content

Commit 5924b8e

Browse files
committed
trigger publish after CI
1 parent c42365a commit 5924b8e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

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

33
on:
4-
push:
5-
tags:
6-
- "v*.*.*"
4+
workflow_run:
5+
workflows: ["CI"]
6+
types:
7+
- completed
8+
branches: [main]
79

810
concurrency:
911
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,6 +14,8 @@ concurrency:
1214
jobs:
1315
deploy:
1416
runs-on: ubuntu-latest
17+
# If CI was successful and the push was on the main branch
18+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'TimChild/reflex-clerk-api' }}
1519
environment: deploy
1620
permissions:
1721
contents: write

0 commit comments

Comments
 (0)