Compare commits

...
Author SHA1 Message Date
songyinyin c6694b7dc8 test github action v06 2023-10-25 10:27:48 +08:00
songyinyin a2a5beaf5b test github action v05 2023-10-24 19:13:39 +08:00
songyinyin 418a44a7c2 test github action v04 2023-10-24 19:09:55 +08:00
+11 -17
View File
@@ -21,6 +21,15 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
- name: build neutrino-proxy-admin
uses: actions/setup-node@v3
with:
node-version: 13.12.0
run: |
cd neutrino-proxy-admin
npm install
npm run build:dev
cp -rf ./dist/ ./../neutrino-proxy-server/src/main/resources/static/
- name: GitHub Action for GraalVM JDK 17
uses: graalvm/setup-graalvm@v1
with:
@@ -39,32 +48,17 @@ 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 (neutrino-proxy-server)
uses: actions/[email protected]
with:
name: neutrino-proxy-server
path:
neutrino-proxy-server.jar
- name: Upload artifact (neutrino-proxy-client)
uses: actions/[email protected]
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
neutrino-proxy-client
neutrino-proxy-server/target/neutrino-proxy-server.jar
neutrino-proxy-client/target/neutrino-proxy-client.jar
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}