Skip to content

Commit 26eeabb

Browse files
committed
fix: only publish release archives
1 parent d34c805 commit 26eeabb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ jobs:
5656
uses: actions/upload-artifact@v4
5757
with:
5858
name: ${{ matrix.target }}
59-
path: release_artifacts/*
59+
path: |
60+
release_artifacts/*.zip
61+
release_artifacts/*.tar.gz
6062
if-no-files-found: error
6163

6264
publish:
@@ -101,7 +103,7 @@ jobs:
101103
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102104
shell: bash
103105
run: |
104-
mapfile -t files < <(find release_artifacts -type f \( -name "*.zip" -o -name "*.tar.gz" \) | sort)
106+
mapfile -t files < <(find release_artifacts -maxdepth 2 -type f \( -name "PyRAG-Kit-*.zip" -o -name "PyRAG-Kit-*.tar.gz" \) | sort)
105107
if [ "${#files[@]}" -eq 0 ]; then
106108
echo "未找到发布产物。" >&2
107109
exit 1

0 commit comments

Comments
 (0)