File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-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+ jobs :
9+ update-file :
10+ runs-on : windows-latest
11+
12+ steps :
13+ # 检出代码仓库
14+ - name : Check out the repository
15+ uses : actions/checkout@v3
16+
17+ # 设置 Python 环境
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : 3.x
22+
23+ # 安装所需的依赖
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install uv
28+
29+ # 运行 build.cmd 构建脚本
30+ - name : Start Building Via Nuitka
31+ run : |
32+ .\build.cmd
33+
34+ # 配置 Git 推送
35+ - name : Commit and push changes
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 内置的 Token
38+ run : |
39+ git config --global user.name "github-actions[bot]"
40+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
41+ git add .
42+ git commit -m "Build new binary distribution for Application.py."
43+ git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/PCL-Community/PCL2-Python.git HEAD:main
You can’t perform that action at this time.
0 commit comments