Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Dec 9, 2021
0 parents commit 097c0eb
Show file tree
Hide file tree
Showing 16 changed files with 2,408 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
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 }}







4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/.vscode
**/tempCodeRunnerFile.py
**/__pycache__/
/.user_data/
25 changes: 25 additions & 0 deletions CHANGELOG.md
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云贝任务无法完成的问题
Loading

0 comments on commit 097c0eb

Please sign in to comment.