Skip to content

Deploy DAGS to S3

Deploy DAGS to S3 #3

Workflow file for this run

name: Deploy DAGS to S3
on:
workflow_dispatch: {}
jobs:
deploy:
name: DAGS
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload DAGs to S3
run: |
cd dags
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }}/dags/ --exclude "*" --include "*.py"