-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (46 loc) · 1.11 KB
/
prd.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: prd release
on:
push:
branches:
- main
paths-ignore:
- "**/README.md"
- "**/dox/**"
- "**/admin/**"
env:
TARGET_ENV: prd
jobs:
releaseDocs:
name: Release docs update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: retypeapp/action-build@v1
- uses: retypeapp/action-github-pages@v1
with:
update-branch: true
releaseApp:
name: Release app updates
runs-on: ubuntu-latest
environment: prd
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Install
run: |
npm install
- name: Build app
run: |
npm run app:build
- name: Deploy infra
run: |
npm run app:infra
- name: Publish templates
run: |
npm run app:publish