test github action v17

This commit is contained in:
songyinyin
2023-10-25 14:10:31 +08:00
parent 47b6a24a42
commit e74dc64a9a
2 changed files with 16 additions and 16 deletions
+8 -8
View File
@@ -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 }}