Skip to content

Commit cac601d

Browse files
committed
chore(quick-260317-l9s): restrict CI/CD to tag-push-only trigger
- Remove branch push triggers (main, develop) from on.push - Remove pull_request trigger entirely - Simplify all job if-conditions (no longer need ref/event checks) - Update stale comments to reflect tag-only trigger Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3557b83 commit cac601d

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/ci-deploy.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@ name: CI/CD
22

33
on:
44
push:
5-
branches: [main, develop]
65
tags:
76
- 'v*'
8-
pull_request:
9-
branches: [main, develop]
107

118
permissions:
129
contents: write
1310

1411
jobs:
1512
# ============================================
16-
# CI Jobs - Run on all pushes and PRs
13+
# CI Jobs - Run on tag push
1714
# ============================================
1815

1916
lint-and-typecheck:
@@ -47,7 +44,7 @@ jobs:
4744
build-apk:
4845
runs-on: ubuntu-latest
4946
needs: [lint-and-typecheck]
50-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.lint-and-typecheck.result == 'success'
47+
if: needs.lint-and-typecheck.result == 'success'
5148
outputs:
5249
version: ${{ steps.version.outputs.version }}
5350
steps:
@@ -132,7 +129,7 @@ jobs:
132129
create-release:
133130
runs-on: ubuntu-latest
134131
needs: [build-apk]
135-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.build-apk.result == 'success'
132+
if: needs.build-apk.result == 'success'
136133
steps:
137134
- name: Download APK artifact
138135
uses: actions/download-artifact@v4
@@ -158,13 +155,13 @@ jobs:
158155
prerelease: false
159156

160157
# ============================================
161-
# Deploy Jobs - Only on push to main
158+
# Deploy Jobs - Run on tag push
162159
# ============================================
163160

164161
deploy-landing:
165162
runs-on: ubuntu-latest
166163
needs: [lint-and-typecheck]
167-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.lint-and-typecheck.result == 'success'
164+
if: needs.lint-and-typecheck.result == 'success'
168165
steps:
169166
- uses: actions/checkout@v4
170167
with:
@@ -205,7 +202,7 @@ jobs:
205202
deploy-deck-builder:
206203
runs-on: ubuntu-latest
207204
needs: [lint-and-typecheck]
208-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.lint-and-typecheck.result == 'success'
205+
if: needs.lint-and-typecheck.result == 'success'
209206
steps:
210207
- uses: actions/checkout@v4
211208
with:
@@ -268,7 +265,7 @@ jobs:
268265
deploy-migrations:
269266
runs-on: ubuntu-latest
270267
needs: [lint-and-typecheck]
271-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.lint-and-typecheck.result == 'success'
268+
if: needs.lint-and-typecheck.result == 'success'
272269
steps:
273270
- uses: actions/checkout@v4
274271
with:
@@ -309,7 +306,7 @@ jobs:
309306
deploy-functions:
310307
runs-on: ubuntu-latest
311308
needs: [lint-and-typecheck]
312-
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name == 'push' && needs.lint-and-typecheck.result == 'success'
309+
if: needs.lint-and-typecheck.result == 'success'
313310
steps:
314311
- uses: actions/checkout@v4
315312
with:

0 commit comments

Comments
 (0)