forked from chen310/NeteaseCloudMusicTasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 097c0eb
Showing
16 changed files
with
2,408 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'deploy' | ||
|
||
on: | ||
watch: | ||
types: started | ||
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: | | ||
if [ -z "$TENCENT_SECRET_ID" ] || [ -z "$TENCENT_SECRET_KEY" ]; then | ||
echo "请配置SECRET_ID和SECRET_KEY两个secrets" | ||
else | ||
bash ./serverless/deploy.sh | ||
cd ./tmp | ||
if [ -n "$CRON" ]; then | ||
sudo sed -i "s/0 30 0 \* \* \* \*/${CRON}/g" ./serverless.yml | ||
fi | ||
if [ -n "$REGION" ]; then | ||
sudo sed -i "s/ap-guangzhou/${REGION}/g" ./serverless.yml | ||
fi | ||
echo "开始部署到腾讯云函数" | ||
sls deploy --debug | ||
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 }} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/.vscode | ||
**/tempCodeRunnerFile.py | ||
**/__pycache__/ | ||
/.user_data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 更新日志 | ||
## 2.10 | 2021.12.09 | ||
|
||
- Github Actions 自动部署到腾讯云函数 | ||
|
||
## 2.9 | 2021.12.07 | ||
|
||
- 增加对API网关触发的支持 | ||
|
||
## 2.8 | 2021.12.07 | ||
|
||
- 修复vip不能自动领取成长值的问题 | ||
- pushPlus支持一对多推送 | ||
|
||
## 2.7 | 2021.12.06 | ||
|
||
- server酱推送适配新版接口 | ||
|
||
## 2.6 | 2021.11.27 | ||
|
||
- 增加pushPlus微信推送 | ||
|
||
## 2.5 | 2021.11.26 | ||
|
||
- 解决v2.4云贝任务无法完成的问题 |
Oops, something went wrong.