Skip to content

Added ci/cd pipeline #1

Added ci/cd pipeline

Added ci/cd pipeline #1

Workflow file for this run

name: Upload DAGS to S3
on:

Check failure on line 2 in .github/workflows/aws-s3-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/aws-s3-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
name: Upload DAGS to Amazon S3
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials from account
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: us-east-1
- name: Copy files to bucket with the AWS CLI
run: |
aws s3 cp ./dags s3://github-actions-ci-cd-tests --recursive --include "*.py"