-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (47 loc) · 1.56 KB
/
master.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
name: Deploy master branch
on:
push:
branches:
- master
paths-ignore:
- 'readme.md'
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18']
region: [eu-west-1, us-east-1, us-west-2]
env:
LOG_LEVEL: info # debug | info | notice | warning | error
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Serverless deploy to ${{ matrix.region }}
uses: serverless/github-action@v3
with:
args: deploy --region ${{ matrix.region }}
env:
IS_PROD: 'TRUE'
AWS_DEFAULT_REGION: ${{ matrix.region }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
IOT_ENDPOINT: ${{ secrets.IOT_ENDPOINT }}
SKILL_ID: ${{ secrets.SKILL_ID }}
ALEXA_CLIENT_ID: ${{ secrets.ALEXA_CLIENT_ID }}
ALEXA_CLIENT_SECRET: ${{ secrets.ALEXA_CLIENT_SECRET }}
HASH_SECRET: ${{ secrets.HASH_SECRET }}
VSH_ADMIN_API_KEY: ${{ secrets.VSH_ADMIN_API_KEY }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
MOMENTO_TOKEN: ${{ secrets.MOMENTO_TOKEN }}