From 058854135777f5b47f7ad136ad2541a7b3b7a221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 01:11:29 +0800 Subject: [PATCH] fix --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b018e8d7..f766439b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,10 +72,17 @@ jobs: steps: - name: Download All Artifact uses: actions/download-artifact@v4 - + + - name: Compress subdirectories + run: | + for dir in */; do + base=$(basename "$dir") + zip -r "${base}.zip" "$dir" + done - name: Create Release Draft and Upload Artifacts uses: softprops/action-gh-release@v1 with: + token: ${{ secrets.NAPCAT_BUILD }} files: | NapCat.win32.amd64.zip NapCat.linux.amd64.zip