From 754070e795c98cbc18a5f3e54534058f0459fcc9 Mon Sep 17 00:00:00 2001 From: songyinyin Date: Mon, 18 Dec 2023 14:43:54 +0800 Subject: [PATCH] =?UTF-8?q?Github=20Action:=20=E4=B8=B4=E6=97=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=9E=84=E5=BB=BA=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux_mac_native.yml | 12 ++++++++++++ .github/workflows/windows-native.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/linux_mac_native.yml b/.github/workflows/linux_mac_native.yml index 4dd77101..1ce3728d 100644 --- a/.github/workflows/linux_mac_native.yml +++ b/.github/workflows/linux_mac_native.yml @@ -80,6 +80,18 @@ jobs: type: 'zip' path: 'neutrino-proxy-client-${{ env.VERSION }}' filename: neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip + # 上传构建产物 + - name: Upload artifact + uses: actions/upload-artifact@v3.0.0 + with: + name: neutrino-proxy-server-client-${{ env.OS }}-${{ env.VERSION }} + 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-client-${{ env.OS }}-${{ env.VERSION }}.zip + # 保存时间,默认 90 天 + retention-days: 5 # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 4f445268..5b9da606 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -77,6 +77,18 @@ jobs: type: 'zip' path: 'neutrino-proxy-client.exe' filename: neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip + # 上传构建产物 + - name: Upload artifact + uses: actions/upload-artifact@v3.0.0 + with: + name: neutrino-proxy-server-client-${{ env.OS }}-${{ env.VERSION }} + 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-client-${{ env.OS }}-${{ env.VERSION }}.zip + # 保存时间,默认 90 天 + retention-days: 5 # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1