Skip to content

Commit 0b95c64

Browse files
authored
Repository dispatch (#723)
* enable dispatch event * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * resolve conflicts * resolve conflicts * fix ci
1 parent c8c3329 commit 0b95c64

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,14 @@ jobs:
136136
( github.event_name == 'push' && github.ref == 'refs/heads/prod') ||
137137
github.event_name == 'repository_dispatch'
138138
)
139-
run: aws s3 sync --delete ./public/ "s3://${AWS_S3_BUCKET_STAG}/"
139+
run: aws s3 sync --delete ./public/ "s3://${AWS_S3_BUCKET_PROD}/"
140140
- name: 🚀 Upload preview app to AWS S3
141-
if: github.repository == 'KlubJagiellonski/pola-web' && github.event_name == 'pull_request' && github.event.sender.type == 'User'
141+
if: |
142+
github.repository == 'KlubJagiellonski/pola-web' &&
143+
(
144+
( github.event_name == 'pull_request' && github.event.sender.type == 'User') ||
145+
github.event_name == 'repository_dispatch'
146+
)
142147
run: aws s3 sync --delete ./public/ "s3://${AWS_S3_BUCKET_PREVIEW}/${PREVIEW_DIR}"
143148
- name: Set success deployment status
144149
if: success() && github.repository == 'KlubJagiellonski/pola-web' && github.event_name == 'pull_request' && github.event.sender.type == 'User'

0 commit comments

Comments
 (0)