Deploy main to app dev #212
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy app | |
# Need to set a default value for when the workflow is triggered from a git push | |
# which bypasses the default configuration for inputs | |
run-name: Deploy ${{inputs.version || 'main' }} to app ${{ inputs.environment || 'dev' }} | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "app/**" | |
- "bin/**" | |
- "infra/**" | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: Environment to deploy to | |
required: true | |
default: "dev" | |
type: choice | |
options: | |
- dev | |
- staging | |
- prod | |
version: | |
required: true | |
default: "main" | |
description: Tag or branch or SHA to deploy | |
jobs: | |
deploy: | |
name: Deploy | |
uses: ./.github/workflows/deploy.yml | |
with: | |
app_name: "app" | |
environment: ${{ inputs.environment || 'dev' }} | |
version: ${{ inputs.version || 'main' }} |