Skip to content

Instantly share code, notes, and snippets.

@sunilshenoy
Created January 3, 2020 23:58
Show Gist options
  • Save sunilshenoy/d81d3eb7c7f4f9f86c0f4cf7a6e05abd to your computer and use it in GitHub Desktop.
Save sunilshenoy/d81d3eb7c7f4f9f86c0f4cf7a6e05abd to your computer and use it in GitHub Desktop.
My Github Actions YAML file.
name: Deploy to Elastic Beanstalk
on:
push:
branches:
- master
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Generate deployment package
run: zip deploy.zip -r .
- name: Deploy to ElasticBeanstalk
uses: einaregilsson/beanstalk-deploy@v3
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: {{REPLACE WITH APPLICATION NAME}}
environment_name: {{REPLACE WITH Environment NAME}}
version_label: latest-${{github.sha}}
region: us-east-2
deployment_package: deploy.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment