更新 .gitea/workflows/demo.yaml

发布生产
This commit is contained in:
xiehaijun 2025-07-27 10:36:08 +00:00
parent 10e7f017ee
commit 73ceaedb6c
1 changed files with 4 additions and 3 deletions

View File

@ -160,16 +160,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 生成制品
run: ./some-script --version=${{ matrix.version }} > my-binary
# run: ./some-script --version=${{ matrix.version }} > my-binary
run echo "系统=${{ matrix.os }}version=${{ matrix.version }}" > my-binary-${{ matrix.os }}-${{ matrix.version }}
- name: 安装上传制品插件
uses: actions/upload-artifact@v4
id: artifact-upload-step-id
with:
name: binary-${{ matrix.os }}-${{ matrix.version }}
path: my-binary
path: my-binary-${{ matrix.os }}-${{ matrix.version }}
retention-days: 90 # 保留期必须介于 1 到 90 天(含)之间。
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
compression-level: 9 # 6默认压缩(与 GNU Gzip 相同),如果设置成0不进行文件压缩
compression-level: 9 # 6默认压缩如果设置成0不进行文件压缩
#path: |
# path/output/bin/
# path/output/test-results