Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.