Skip to content

Update push-to-main.yaml #24

Update push-to-main.yaml

Update push-to-main.yaml #24

name: Deploy code to Preview
on:
push:
branches:
- "**"
- "!main"
workflow_dispatch:
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: deploy-deployment-preview
deployment-name: neel-test-1
root-folder: dbt/
mount-path: /dbt