更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m6s Details
自动流水线示例 / deploy (push) Successful in 18s Details
自动流水线示例 / 检查 (push) Successful in 10s Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 16s Details
自动流水线示例 / download (push) Successful in 1m26s Details

发布生产
This commit is contained in:
xiehaijun 2025-07-28 13:49:37 +00:00
parent 886e371de6
commit c65233e116
1 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,7 @@ jobs:
steps: steps:
- name: 生成制品 - 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 }} run: echo "系统=${{ matrix.os }},version=${{ matrix.version }}" > my-binary-${{ matrix.os }}-${{ matrix.version }}
- name: 安装上传制品插件 - name: 安装上传制品插件
uses: actions/upload-artifact@v3 #download-artifact@v4,v4版本不支持github企业服务[GitHub Enterprise Server(GHES)]v3支持 uses: actions/upload-artifact@v3 #download-artifact@v4,v4版本不支持github企业服务[GitHub Enterprise Server(GHES)]v3支持
id: artifact-upload-step-id id: artifact-upload-step-id
@ -194,6 +194,8 @@ jobs:
echo 'Artifact URL is ${{ steps.artifact-upload-step-id.artifact-url }}' echo 'Artifact URL is ${{ steps.artifact-upload-step-id.artifact-url }}'
echo 'Artifact SHA 256 is ${{ steps.artifact-upload-step-id.artifact-digest }}' echo 'Artifact SHA 256 is ${{ steps.artifact-upload-step-id.artifact-digest }}'
upload: upload:
needs: check
if: ${{ success() }}
outputs: outputs:
tag-name: ${{ steps.set-tag.outputs.tag }} # 设置一个输出标签。对外包露tag-name值来自于当前job下steps下id叫set-tag的环境变量tag tag-name: ${{ steps.set-tag.outputs.tag }} # 设置一个输出标签。对外包露tag-name值来自于当前job下steps下id叫set-tag的环境变量tag
strategy: strategy: