From 0057892f162971a694d798e210df6014440c4ee3 Mon Sep 17 00:00:00 2001 From: Yang Yang <153794571+YuWanTingbb@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20maven-publish.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven-publish.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 8dbd820..d28aed1 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -71,10 +71,17 @@ jobs: fi cp ./config.json ./packaging/config.json - - name: Create ZIP - uses: montudor/action-zip@v0.1.1 - with: - args: zip -r ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}.zip ./packaging + - name: Create ZIP (Unix) + if: runner.os != 'Windows' + run: | + cd packaging + zip -r ../target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}.zip . + + - name: Create ZIP (Windows) + if: runner.os == 'Windows' + run: | + Compress-Archive -Path packaging/* -DestinationPath ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}.zip + shell: powershell - name: Check if release exists id: check_release