-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.09 KB
/
development.yml
File metadata and controls
45 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI/CD - Development
on:
push:
branches:
- development
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@master
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Clean Package
run: npm run clean
- name: Build Package
run: npm run build
- name: List /Build
run: ls ./build
- name: Generate deployment package
run: cd ./build; zip -r ../deploy.zip ./; cd ..
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v1
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: ComoPedir
environment_name: dev-comopedir
version_label: ${{ github.sha }}
region: sa-east-1
deployment_package: deploy.zip