File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Binary Distribution Daily
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 4 * * *' # 每天北京时间时间中午12点
6+ workflow_dispatch :
7+
8+ permissions : # 显式指定权限
9+ contents : write
10+
11+ jobs :
12+ update-file :
13+ runs-on : windows-latest
14+
15+ steps :
16+ # 检出代码仓库
17+ - name : Check out the repository
18+ uses : actions/checkout@v3
19+
20+ # 设置 Python 环境
21+ - name : Set up Python
22+ uses : actions/setup-python@v4
23+ with :
24+ python-version : 3.x
25+
26+ # 安装所需的依赖
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install uv
31+
32+ # 运行 build.cmd 构建脚本
33+ - name : Start Building Via Nuitka
34+ run : |
35+ .\build.cmd
36+
37+ # 配置 Git 推送
38+ - name : Commit and push changes
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 内置的 Token
41+ run : |
42+ git config --global user.name "github-actions[bot]"
43+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
44+ git add .
45+ git commit -m "Build new binary distribution for Application.py."
46+ git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CreeperIsASpy/FullScreenNotice.git HEAD:main
You can’t perform that action at this time.
0 commit comments