add dbt deploy logic #2
Workflow file for this run
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 to Preview | |
on: | |
push: | |
branches: | |
- "**" | |
- "!main" | |
env: | |
## Sets Deployment API key credentials as environment variables | |
ASTRO_API_TOKEN: ${{ secrets.ASTRO_API_TOKEN }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print GITHUB_ACTIONS env var | |
run: echo "GITHUB_ACTIONS=${GITHUB_ACTIONS}" | |
- name: Deploy to Deployment Preivew | |
uses: astronomer/deploy-action@dbt-deploy | |
with: | |
action: dbt-deploy-deployment-preview | |
deployment-name: neel-test-1 | |
root-folder: dbt/ | |
mount-path: /dbt |