From d78a1d7d9b21ffbcaa7956c86a3d4c6c94f916c0 Mon Sep 17 00:00:00 2001 From: songyinyin Date: Tue, 24 Oct 2023 19:04:30 +0800 Subject: [PATCH] test github action v03 --- .github/workflows/jar_release.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/jar_release.yml b/.github/workflows/jar_release.yml index 4d0a1529..78c014ff 100644 --- a/.github/workflows/jar_release.yml +++ b/.github/workflows/jar_release.yml @@ -39,25 +39,32 @@ jobs: mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress package cd neutrino-proxy-server mvn clean package --file pom.xml --no-transfer-progress package + cp target/neutrino-proxy-server.jar ./../ - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client mvn clean package --file pom.xml --no-transfer-progress package + cp target/neutrino-proxy-client.jar ./../ # 上传构建产物 - - name: Upload artifact + - name: Upload artifact (neutrino-proxy-server) uses: actions/upload-artifact@v3.0.0 with: - name: neutrino-proxy-server-and-client - path: | - neutrino-proxy-server/target/neutrino-proxy-server.jar - neutrino-proxy-client/target/neutrino-proxy-client.jar + name: neutrino-proxy-server + path: + neutrino-proxy-server.jar + - name: Upload artifact (neutrino-proxy-client) + uses: actions/upload-artifact@v3.0.0 + with: + name: neutrino-proxy-client + path: + neutrino-proxy-client.jar # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | - neutrino-proxy-server.jar - neutrino-proxy-client.jar + neutrino-proxy-server + neutrino-proxy-client prerelease: true token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file