Skip to content

Commit bc2373f

Browse files
committed
ci: 优化 GitHub Actions 自动构建配置
- 添加 pyproject.toml 和 mcsmapi/** 路径到触发构建的文件列表 - 修改构建产物命名规则,使用固定名称替代包含 SHA 值的名称 - 统一压缩包和轮子文件的命名格式
1 parent 5230d30 commit bc2373f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/auto-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'pyproject.toml'
9+
- 'mcsmapi/**'
710
pull_request:
811
branches:
912
- main
@@ -37,12 +40,12 @@ jobs:
3740
if: github.event_name == 'push'
3841
uses: actions/upload-artifact@v4
3942
with:
40-
name: mcsmapi-source-${{ github.sha }}
43+
name: mcsmapi.tar.gz
4144
path: dist/*.tar.gz
4245

4346
- name: Upload .whl as artifact
4447
if: github.event_name == 'push'
4548
uses: actions/upload-artifact@v4
4649
with:
47-
name: mcsmapi-wheel-${{ github.sha }}
50+
name: mcsmapi.whl
4851
path: dist/*.whl

0 commit comments

Comments
 (0)