-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.11 KB
/
deploy.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
on:
push:
branches: ["main"]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: deploy
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: Setup Go environment
uses: actions/[email protected]
with:
go-version: '^1.21.0'
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Install
run: make install
- name: Write Backend Config File
uses: DamianReeves/[email protected]
with:
path: fns/config.yml
contents: |
mailTo: ${{ secrets.SNS_EMAIL }}
certArn: ${{ secrets.CERT_ARN }}
nonceKey: "${{ secrets.NONCE_KEY }}"
- name: Deploy Backend
run: make deploy-fns
- name: Deploy Frontend
run: make deploy-site