This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
Update readme file with all workflows description #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to AWS Elastic Beanstalk | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm test | |
- name: Generate deployment package | |
run: zip -r package.zip . -x '*.git*' | |
- name: Deploy to AWS Elastic Beanstalk | |
uses: einaregilsson/beanstalk-deploy@v18 | |
with: | |
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
application_name: 'GitHubActionsApp' | |
environment_name: 'GitHubActionsApp-env' | |
region: 'eu-central-1' | |
version_label: ${{ github.sha }} | |
deployment_package: 'package.zip' |