Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed May 12, 2021
1 parent 317ba98 commit b588b6c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/auto-deploy-tencent-scf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
echo "开始配置云函数:"
echo "$Tencent_Serverless_Yml"
[ -z "$Tencent_Serverless_Yml" ] && echo "未配置serverless.yml,使用默认值" || echo "$Tencent_Serverless_Yml" > serverless.yml
echo "开始部署"
echo "开始发布项目"
chmod +x publish.sh
./publish.sh
sls deploy --debug
echo "开始部署到云函数"
sls deploy --force
env: # 环境变量
STAGE: dev #您的部署环境
SERVERLESS_PLATFORM_VENDOR: tencent #serverless海外默认为aws部署,配置为腾讯部署
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }} #您的腾讯云账号sercret ID
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }} #您的腾讯云账号sercret key
SCF_REGION: ${{ secrets.SCF_REGION || 'ap-guangzhou' }} #部署函数到哪个区域,默认广州
Tencent_Serverless_Yml: ${{ secrets.TENCENT_SERVERLESS_YML }}
SERVERLESS_PLATFORM_VENDOR: tencent # serverless海外默认为aws部署,配置为腾讯部署
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }} # 您的腾讯云账号sercret ID
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }} # 您的腾讯云账号sercret key
Tencent_Serverless_Yml: ${{ secrets.TENCENT_SERVERLESS_YML }} # 云函数配置(区域、环境变量、触发器等)

0 comments on commit b588b6c

Please sign in to comment.