-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.12 KB
/
dev.yml
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
name: Deploy to development server
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Run npm install
run: |
npm ci
npm install
npm run lint
npm run tsc
- name: Generate deployment package
run: zip -r package.zip . -x ".git/*" -x ".github/*" -x ".vscode/*"
- name: Get timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H-%M-%S-%3NZ')"
- name: Run beanstalk deploy
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: dev-atarca-backend
environment_name: Devatarcabackend-env
region: eu-central-1
version_label: "${{ steps.timestamp.outputs.date }}"
deployment_package: package.zip