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 c42365a commit 5924b8eCopy full SHA for 5924b8e
.github/workflows/publish.yml
@@ -1,9 +1,11 @@
1
name: Publish
2
3
on:
4
- push:
5
- tags:
6
- - "v*.*.*"
+ workflow_run:
+ workflows: ["CI"]
+ types:
7
+ - completed
8
+ branches: [main]
9
10
concurrency:
11
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,6 +14,8 @@ concurrency:
12
14
jobs:
13
15
deploy:
16
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' }}
19
environment: deploy
20
permissions:
21
contents: write
0 commit comments