From 884296bd275bd9a41d6f94359ece45cfffe53898 Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 11:48:41 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布生产 --- .gitea/workflows/demo.yaml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 6fa7679..6295220 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -164,7 +164,7 @@ jobs: # 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@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 with: name: binary-${{ matrix.os }}-${{ matrix.version }} @@ -198,14 +198,20 @@ jobs: needs: upload runs-on: ubuntu-latest steps: - - name: Download All Artifacts - uses: actions/download-artifact@v3 #github公开版可以用v4 - with: - path: my-artifact - pattern: my-artifact-* - merge-multiple: true - # 下载其他仓库的制品 - # github-token: ${{ secrets.GH_PAT }} - # repository: actions/toolkit - # run-id: 1234 - - run: ls -R my-artifact + - name: Download All Artifacts + uses: actions/download-artifact@v3 #github公开版可以用v4 + with: + path: my-artifact + pattern: my-artifact-* + merge-multiple: true + # 下载其他仓库的制品 + # github-token: ${{ secrets.GH_PAT }} + # repository: actions/toolkit + # run-id: 1234 + - 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