Update deploy_tencent_scf.yml
This commit is contained in:
6
.github/workflows/deploy_tencent_scf.yml
vendored
6
.github/workflows/deploy_tencent_scf.yml
vendored
@ -18,10 +18,10 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: "安装依赖和serverless工具"
|
||||
- name: "安装依赖"
|
||||
run: |
|
||||
npm install
|
||||
sudo npm install serverless -g
|
||||
npm install tencentcloud-sdk-nodejs
|
||||
|
||||
- name: "将Secrets里面配置的变量添加到severless.yml里面作为环境变量"
|
||||
run: |
|
||||
@ -157,6 +157,8 @@ jobs:
|
||||
DREAMFACTORY_FORBID_ACCOUNT: ${{ secrets.DREAMFACTORY_FORBID_ACCOUNT}}
|
||||
JDFACTORY_FORBID_ACCOUNT: ${{ secrets.JDFACTORY_FORBID_ACCOUNT}}
|
||||
|
||||
- name: "压缩文件夹"
|
||||
run: zip -r myfile.zip ./*
|
||||
- name: "部署到腾讯云函数"
|
||||
run: serverless deploy
|
||||
env:
|
||||
|
Reference in New Issue
Block a user