From 9baee2c9094253b5e00427ef3a6e4bd7f875bafb Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Mon, 18 Dec 2023 16:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux_mac_native.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linux_mac_native.yml b/.github/workflows/linux_mac_native.yml index 596f4d86..019b3ed1 100644 --- a/.github/workflows/linux_mac_native.yml +++ b/.github/workflows/linux_mac_native.yml @@ -59,16 +59,12 @@ jobs: 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/neutrino-proxy-server.jar ./../neutrino-proxy-server.jar cp target/classes/app-copy.yml ./../app.yml - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: type: 'zip' - # path: 'neutrino-proxy-server-${{ env.VERSION }}' - files: | - neutrino-proxy-server-${{ env.VERSION }} - app.yml + path: 'neutrino-proxy-server-${{ env.VERSION }}' filename: neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}.zip - name: Build with Maven (neutrino-proxy-client) run: | @@ -77,16 +73,12 @@ jobs: mvn clean native:compile -P native --file pom.xml --no-transfer-progress chmod +x target/neutrino-proxy-client cp target/neutrino-proxy-client ./../neutrino-proxy-client-${{ env.VERSION }} - cp target/neutrino-proxy-client.jar ./../neutrino-proxy-client.jar cp target/classes/app-copy.yml ./../app.yml - name: Archive zip (neutrino-proxy-client) uses: thedoctor0/zip-release@master with: type: 'zip' - # path: 'neutrino-proxy-client-${{ env.VERSION }}' - files: | - neutrino-proxy-client-${{ env.VERSION }} - app.yml + path: 'neutrino-proxy-client-${{ env.VERSION }}' filename: neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip # 上传构建产物 - name: Upload artifact @@ -94,8 +86,8 @@ jobs: with: name: neutrino-proxy-server-client-${{ env.OS }}-${{ env.VERSION }} path: | - neutrino-proxy-server.jar - neutrino-proxy-client.jar + 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-client-${{ env.OS }}-${{ env.VERSION }}.zip # 保存时间,默认 90 天