Skip to content

Commit 188188d

Browse files
authored
Update ci.yml
设置每周一 自动编译 自动发布到GitHub Releases
1 parent 0700b8a commit 188188d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main # 自动触发条件:当有 PR 合并到 main 分支时
1010
workflow_dispatch: # 手动触发条件
11+
schedule:
12+
- cron: '0 0 * * 1' # 每周一 00:00 UTC 触发
1113

1214
jobs:
1315
build:
@@ -54,3 +56,9 @@ jobs:
5456
path: |
5557
python-miio-git.tar.gz
5658
version.txt
59+
- name: Upload release asset
60+
uses: softprops/action-gh-release@v1
61+
with:
62+
files: python-miio-git.tar.gz # 将 python-miio-git.tar.gz 文件上传到 GitHub Releases
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GITHUB_TOKEN 来进行认证

0 commit comments

Comments
 (0)