Skip to content

Commit

Permalink
cd: add on workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingertips18 committed Jan 18, 2025
1 parent 5fc2ea1 commit 53df14b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Portfolio - Deploy

on:
workflow_run:
workflows: ["Portfolio - Build"]
types:
- completed
workflow_dispatch:

jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout Code
Expand Down

0 comments on commit 53df14b

Please sign in to comment.