更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m1s Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 20s Details
自动流水线示例 / deploy (push) Successful in 14s Details
自动流水线示例 / download (push) Successful in 15s Details
自动流水线示例 / 检查 (push) Successful in 6s 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

发布生产
This commit is contained in:
xiehaijun 2025-07-27 11:48:41 +00:00
parent c68b7d7702
commit 884296bd27
1 changed files with 18 additions and 12 deletions

View File

@ -164,7 +164,7 @@ jobs:
# 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
with: with:
name: binary-${{ matrix.os }}-${{ matrix.version }} name: binary-${{ matrix.os }}-${{ matrix.version }}
@ -198,14 +198,20 @@ jobs:
needs: upload needs: upload
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download All Artifacts - name: Download All Artifacts
uses: actions/download-artifact@v3 #github公开版可以用v4 uses: actions/download-artifact@v3 #github公开版可以用v4
with: with:
path: my-artifact path: my-artifact
pattern: my-artifact-* pattern: my-artifact-*
merge-multiple: true merge-multiple: true
# 下载其他仓库的制品 # 下载其他仓库的制品
# github-token: ${{ secrets.GH_PAT }} # github-token: ${{ secrets.GH_PAT }}
# repository: actions/toolkit # repository: actions/toolkit
# run-id: 1234 # run-id: 1234
- run: ls -R my-artifact - run: ls -R my-artifact
- name: Flatten directory
run: |
mkdir release
# find all-artifacts -type f -exec cp {} release/ \;
find . -type f -exec cp {} release/ \;
ls -lah ./release