forked from chen310/NeteaseCloudMusicTasks
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 823 Bytes
/
deploy.yml
File metadata and controls
32 lines (30 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 'deploy'
on:
workflow_dispatch:
jobs:
deploy-to-scf:
name: Deploy to scf
runs-on: ubuntu-latest
steps:
- name: clone local repository
uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install python dependencies
run: pip install tencentcloud-sdk-python json5
- name: deploy
run: |
bash ./serverless/deploy.sh
if [ $? -ne 0 ]; then
exit 1;
fi
env:
STAGE: dev
SERVERLESS_PLATFORM_VENDOR: tencent
TENCENT_SECRET_ID: ${{ secrets.SECRET_ID }}
TENCENT_SECRET_KEY: ${{ secrets.SECRET_KEY }}
CRON: ${{ secrets.CRON }}
REGION: ${{ secrets.REGION }}
FUNCTION_NAME: ${{ secrets.FUNCTION_NAME }}