From 1651f2ca1c30ec6be767eee505e47b1c7d6eb6a9 Mon Sep 17 00:00:00 2001 From: songyinyin Date: Wed, 25 Oct 2023 10:50:38 +0800 Subject: [PATCH] test github action v10 --- .github/workflows/jar_release.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jar_release.yml b/.github/workflows/jar_release.yml index c8b7207f..ea658278 100644 --- a/.github/workflows/jar_release.yml +++ b/.github/workflows/jar_release.yml @@ -48,13 +48,26 @@ jobs: ${{ runner.os }}-maven- - name: Build with Maven (neutrino-proxy-server) run: | - mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress package + mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress cd neutrino-proxy-server - mvn clean package --file pom.xml --no-transfer-progress package + mvn clean native:compile -P native --file pom.xml --no-transfer-progress + - name: Archive zip (neutrino-proxy-server) + uses: thedoctor0/zip-release@master + with: + type: 'zip' + path: 'neutrino-proxy-server/target/neutrino-proxy-server' + filename: neutrino-proxy-server-${{ matrix.os }}.zip - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client - mvn clean package --file pom.xml --no-transfer-progress package + mvn clean package --file pom.xml --no-transfer-progress + mvn clean native:compile -P native --file pom.xml --no-transfer-progress + - name: Archive zip (neutrino-proxy-client) + uses: thedoctor0/zip-release@master + with: + type: 'zip' + path: 'neutrino-proxy-client/target/neutrino-proxy-client' + filename: neutrino-proxy-client-${{ matrix.os }}.zip # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1 @@ -63,5 +76,7 @@ jobs: files: | neutrino-proxy-server/target/neutrino-proxy-server.jar neutrino-proxy-client/target/neutrino-proxy-client.jar + neutrino-proxy-server-${{ matrix.os }}.zip + neutrino-proxy-client-${{ matrix.os }}.zip prerelease: true token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file