Skip to content

Commit

Permalink
Merge pull request #43 from WXYC/task/update-deploy-workflow
Browse files Browse the repository at this point in the history
Add auto and manual deploy workflows
  • Loading branch information
AyBruno authored Feb 20, 2025
2 parents 5425e93 + 62a42f0 commit 5dbab13
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Auto Deploy

on:
push:
branches:
- main

jobs:
trigger-build-and-deploy:
uses: ./.github/workflows/deploy.yml
with:
dry-run: false
15 changes: 15 additions & 0 deletions .github/workflows/deploy-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Manual Deploy

on:
workflow_dispatch:
inputs:
dry_run:
description: 'Perform a dry run'
required: false
default: 'true'

jobs:
trigger-build-and-deploy:
uses: ./.github/workflows/deploy.yml
with:
dry-run: github.events.inputs.dry_run
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI/CD Pipeline
name: Build & Deploy

on:
workflow_dispatch:
workflow_call:
inputs:
dry_run:
description: 'Perform a dry run'
Expand Down

0 comments on commit 5dbab13

Please sign in to comment.