Skip to content

Commit

Permalink
Update auto-deploy-tencent-scf.yml (#515)
Browse files Browse the repository at this point in the history
更新scf自动部署
  • Loading branch information
xianfanjie authored Mar 27, 2023
1 parent e10251c commit b4d3c98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/auto-deploy-tencent-scf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- id: check
run: |
[ ${{ github.event_name }} == 'workflow_dispatch' -o true == "${{ env.IsAutoDeployTencentScf }}" ] && echo "::set-output name=result::开启" || echo "::set-output name=result::关闭"
[ ${{ github.event_name }} == 'workflow_dispatch' -o true == "${{ env.IsAutoDeployTencentScf }}" ] && echo "result=开启" >> $GITHUB_OUTPUT || echo "result=关闭" >> $GITHUB_OUTPUT
deploy:
name: deploy serverless
Expand All @@ -28,13 +28,13 @@ jobs:
if: needs.pre-check.outputs.result=='开启'
steps:
- name: clone local repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
- name: install serverless
run: npm install -g serverless
run: npm i -g serverless-cloud-framework
- name: deploy serverless
run: |
cd ./tencentScf
Expand All @@ -45,7 +45,7 @@ jobs:
chmod +x publish.sh
./publish.sh
echo "开始部署到云函数"
sls deploy --force
scf deploy
env: # 环境变量
STAGE: dev #您的部署环境
SERVERLESS_PLATFORM_VENDOR: tencent # serverless海外默认为aws部署,配置为腾讯部署
Expand Down

0 comments on commit b4d3c98

Please sign in to comment.