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