Skip to content

Commit

Permalink
Update deployment workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Mar 20, 2024
1 parent 1ba426a commit a34da22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
inputs:
environment:
required: false
default: dev
type: choice
description: "Select the environment to deploy to (optional for pushes)"
choices: ["dev", "staging", "prod"]
options:
- staging
- prod

jobs:
deploy:
uses: ./.github/workflows/build_and_deploy.yml
with:
environment: ${{ github.event.inputs.environment || 'dev' }}
environment: ${{ inputs.environment || 'dev' }}
secrets: inherit

0 comments on commit a34da22

Please sign in to comment.