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