This commit is contained in:
1
2026-01-20 16:09:04 +00:00
parent a67b06a8ee
commit cf4660fbe0

View File

@@ -104,13 +104,13 @@ jobs:
overwrite: true # 覆盖同名文件避免上传失败
# 优化Artifact上传增加校验确保产物存在
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: logic_${{ needs.prepare-version.outputs.build_version }}
path: ./build/logic_${{ needs.prepare-version.outputs.build_version }}
if-no-files-found: error # 产物不存在则报错避免空上传
retention-days: 1 # 缩短保留时间节省空间
# - name: Upload Build Artifact
# uses: actions/upload-artifact@v4
# with:
# name: logic_${{ needs.prepare-version.outputs.build_version }}
# path: ./build/logic_${{ needs.prepare-version.outputs.build_version }}
# if-no-files-found: error # 产物不存在则报错避免空上传
# retention-days: 1 # 缩短保留时间节省空间
# 注释的SSH部署步骤保留但优化了变量引用兼容push触发
# - name: 推送到服务器并通过screen启动服务