Skip to content

Commit 42d35ee

Browse files
committed
2 parents ea93f02 + 922890c commit 42d35ee

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

main.exe

30.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)