Skip to content

Update aws-deploy.yml #5

Update aws-deploy.yml

Update aws-deploy.yml #5

Workflow file for this run

name: Deploy to AWS
on:
workflow_dispatch
push:

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 5
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Deploy Application
run: |
echo "Deploying application to AWS..."
build_version=$(head -n 1 version)
zip python-app-$build_version.zip lambda-s3-dynamodb.py
aws s3 cp python-app-$build_version.zip s3://vw-demo-730335502100-build-repository/snapshots/