From 99b3b673f1da6f30cbd890cbf28e8807701c8d27 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Mon, 18 Dec 2023 21:45:26 +0800 Subject: [PATCH] =?UTF-8?q?workflow=E8=B0=83=E6=95=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux_mac_native.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux_mac_native.yml b/.github/workflows/linux_mac_native.yml index 019b3ed1..605b8044 100644 --- a/.github/workflows/linux_mac_native.yml +++ b/.github/workflows/linux_mac_native.yml @@ -58,14 +58,15 @@ jobs: cd neutrino-proxy-server mvn clean native:compile -P native --file pom.xml --no-transfer-progress chmod +x target/neutrino-proxy-server - cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ env.VERSION }} - cp target/classes/app-copy.yml ./../app.yml + mkdir ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native + cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native/neutrino-proxy-server + cp target/classes/app-copy.yml ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native/app.yml - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-server-${{ env.VERSION }}' - filename: neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}.zip + path: 'neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native' + filename: neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native.zip - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client @@ -79,6 +80,7 @@ jobs: with: type: 'zip' path: 'neutrino-proxy-client-${{ env.VERSION }}' + filename: neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip # 上传构建产物 - name: Upload artifact @@ -88,7 +90,7 @@ jobs: path: | neutrino-proxy-server/target/neutrino-proxy-server.jar neutrino-proxy-client/target/neutrino-proxy-client.jar - neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}.zip + neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native.zip neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip # 保存时间,默认 90 天 retention-days: 5