From e74dc64a9aab9b42dc906705f9fe19252d005a72 Mon Sep 17 00:00:00 2001 From: songyinyin Date: Wed, 25 Oct 2023 14:10:31 +0800 Subject: [PATCH] test github action v17 --- .github/workflows/linux_mac_native.yml | 16 ++++++++-------- .github/workflows/windows-native.yml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/linux_mac_native.yml b/.github/workflows/linux_mac_native.yml index e2898d4f..c261a4ee 100644 --- a/.github/workflows/linux_mac_native.yml +++ b/.github/workflows/linux_mac_native.yml @@ -49,25 +49,25 @@ jobs: mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress cd neutrino-proxy-server mvn clean native:compile -P native --file pom.xml --no-transfer-progress - cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref }} + cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref_name }} - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-server-${{ github.ref }}' - filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip + path: 'neutrino-proxy-server-${{ github.ref_name }}' + filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client mvn clean package --file pom.xml --no-transfer-progress mvn clean native:compile -P native --file pom.xml --no-transfer-progress - cp target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref }} + cp target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref_name }} - name: Archive zip (neutrino-proxy-client) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-client-${{ github.ref }}' - filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip + path: 'neutrino-proxy-client-${{ github.ref_name }}' + filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1 @@ -76,7 +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 }}-${{ github.ref }}.zip - neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip + neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip + neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip prerelease: true token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 134853ed..b643b5b2 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -50,25 +50,25 @@ jobs: mvn clean install -pl neutrino-proxy-core -am -DskipTests --no-transfer-progress cd neutrino-proxy-server mvn clean native:compile -P native --file pom.xml --no-transfer-progress - xcopy target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref }} + xcopy target/neutrino-proxy-server ./../neutrino-proxy-server-${{ github.ref_name }} - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-server-${{ github.ref }}' - filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip + path: 'neutrino-proxy-server-${{ github.ref_name }}' + filename: neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client mvn clean package --file pom.xml --no-transfer-progress mvn clean native:compile -P native --file pom.xml --no-transfer-progress - xcopy target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref }} + xcopy target/neutrino-proxy-client ./../neutrino-proxy-client-${{ github.ref_name }} - name: Archive zip (neutrino-proxy-client) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-client-${{ github.ref }}' - filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip + path: 'neutrino-proxy-client-${{ github.ref_name }}' + filename: neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip # GitHub 上创建 release - name: Release uses: softprops/action-gh-release@v1 @@ -77,7 +77,7 @@ jobs: files: | neutrino-proxy-server/target/neutrino-proxy-server.jar neutrino-proxy-client/target/neutrino-proxy-client.jar - neutrino-proxy-server-${{ matrix.os }}-${{ github.ref }}.zip - neutrino-proxy-client-${{ matrix.os }}-${{ github.ref }}.zip + neutrino-proxy-server-${{ matrix.os }}-${{ github.ref_name }}.zip + neutrino-proxy-client-${{ matrix.os }}-${{ github.ref_name }}.zip prerelease: true token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file