From 08e4782913e086dd1eb8ebf9b4836e858d3a5d0a Mon Sep 17 00:00:00 2001 From: DoveBoy <393366046@qq.com> Date: Mon, 25 Jan 2021 10:55:40 +0800 Subject: [PATCH] Update deploy_tencent_scf.yml --- .github/workflows/deploy_tencent_scf.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_tencent_scf.yml b/.github/workflows/deploy_tencent_scf.yml index 844d094e..20c2d8ac 100644 --- a/.github/workflows/deploy_tencent_scf.yml +++ b/.github/workflows/deploy_tencent_scf.yml @@ -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: