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 782dbc0 commit 7c87ef7Copy full SHA for 7c87ef7
.github/workflows/deploy.yml
@@ -15,6 +15,7 @@ permissions:
15
jobs:
16
# from https://github.com/peter-evans/create-pull-request/blob/main/docs/examples.md#keep-a-branch-up-to-date-with-another
17
deploy-staging:
18
+ if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/')
19
runs-on: ubuntu-latest
20
steps:
21
- uses: actions/checkout@v4
@@ -39,6 +40,7 @@ jobs:
39
40
41
42
deploy-production:
43
+ if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/staging')
44
45
46
0 commit comments