Skip to content

Commit

Permalink
chore: Update cd workflow event
Browse files Browse the repository at this point in the history
  • Loading branch information
Hut234 authored Feb 18, 2025
1 parent 44bd373 commit 856303a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
name: CD

on:
push:
workflow_run:
workflows:
- ContinuousIntegration
types:
- completed
branches:
- main
- development

pull_request:
types:
- closed
branches:
- main
- development

jobs:
deploy:
if: (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push')
|| github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: SSH into EC2 and deploy
Expand Down

0 comments on commit 856303a

Please sign in to comment.