Astronomer CI - Deploy code #18
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: Astronomer CI - Deploy code | |
on: | |
workflow_dispatch: | |
inputs: | |
deploymentId: | |
description: "Deployment ID" | |
required: false | |
type: string | |
apiToken: | |
description: "Astro API Token" | |
required: false | |
type: string | |
push: | |
branches: | |
- main | |
env: | |
ASTRO_API_TOKEN: ${{ inputs.apiToken || secrets.ASTRO_API_TOKEN }} | |
DEPLOYMENT_ID: ${{ inputs.deploymentId || vars.DEPLOYMENT_ID }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to Astro | |
uses: astronomer/deploy-action@v0.2 |