From 7285795f1d4a8b3ba55d85d10dd289abde3aea5f Mon Sep 17 00:00:00 2001 From: zeke Date: Tue, 26 Nov 2024 15:05:23 +0800 Subject: [PATCH] update: github workflow --- .github/workflows/build-rs-capi.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-rs-capi.yml b/.github/workflows/build-rs-capi.yml index 09c2acb..f77d766 100644 --- a/.github/workflows/build-rs-capi.yml +++ b/.github/workflows/build-rs-capi.yml @@ -68,16 +68,23 @@ jobs: create-release: needs: build-release runs-on: ubuntu-latest - # 添加权限设置 permissions: - contents: write # 需要写入权限来创建 release - + contents: write steps: + # 添加下载构建产物的步骤 + - uses: actions/download-artifact@v3 + with: + path: artifacts + + # 列出下载的文件(可选,用于调试) + - name: Display structure of downloaded files + run: ls -R artifacts/ + - name: Create Release uses: softprops/action-gh-release@v1 with: tag_name: v0.1.4 - files: "rs-capi-*" # 如果需要上传构建产物 + files: artifacts/**/* # 修改为包含所有下载的构建产物 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}