-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 940 Bytes
/
prod.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
name: CI for prod
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deployAndInvokeSCF:
runs-on: ubuntu-latest
env:
SERVERLESS_PLATFORM_VENDOR: tencent
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }}
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }}
REGION: ap-guangzhou
REDIS_HOST: ${{ secrets.REDIS_HOST_PROD }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD_PROD }}
REDIS_PORT: ${{ secrets.REDIS_PORT_PROD }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install serverless cli
run: sudo npm i serverless -g
- name: Deploy and invoke SCF
run: |
cd sync-types
npm i
sls deploy
sls invoke