test github action v05
This commit is contained in:
@@ -39,32 +39,32 @@ jobs:
|
|||||||
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 package
|
||||||
cd neutrino-proxy-server
|
cd neutrino-proxy-server
|
||||||
mvn clean package --file pom.xml --no-transfer-progress package
|
mvn clean package --file pom.xml --no-transfer-progress package
|
||||||
cp target/neutrino-proxy-server.jar ./../
|
# cp target/neutrino-proxy-server.jar ./../
|
||||||
- name: Build with Maven (neutrino-proxy-client)
|
- name: Build with Maven (neutrino-proxy-client)
|
||||||
run: |
|
run: |
|
||||||
cd neutrino-proxy-client
|
cd neutrino-proxy-client
|
||||||
mvn clean package --file pom.xml --no-transfer-progress package
|
mvn clean package --file pom.xml --no-transfer-progress package
|
||||||
cp target/neutrino-proxy-client.jar ./../
|
# cp target/neutrino-proxy-client.jar ./../
|
||||||
# 上传构建产物
|
# 上传构建产物
|
||||||
- name: Upload artifact (neutrino-proxy-server)
|
# - name: Upload artifact (neutrino-proxy-server)
|
||||||
uses: actions/[email protected]
|
# uses: actions/[email protected]
|
||||||
with:
|
# with:
|
||||||
name: neutrino-proxy-server
|
# name: neutrino-proxy-server
|
||||||
path:
|
# path:
|
||||||
neutrino-proxy-server.jar
|
# neutrino-proxy-server.jar
|
||||||
- name: Upload artifact (neutrino-proxy-client)
|
# - name: Upload artifact (neutrino-proxy-client)
|
||||||
uses: actions/[email protected]
|
# uses: actions/[email protected]
|
||||||
with:
|
# with:
|
||||||
name: neutrino-proxy-client
|
# name: neutrino-proxy-client
|
||||||
path:
|
# path:
|
||||||
neutrino-proxy-client.jar
|
# neutrino-proxy-client.jar
|
||||||
# GitHub 上创建 release
|
# GitHub 上创建 release
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
neutrino-proxy-server.jar
|
neutrino-proxy-server/target/neutrino-proxy-server.jar
|
||||||
neutrino-proxy-client.jar
|
neutrino-proxy-client/target/neutrino-proxy-client.jar
|
||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user