Compare commits

...
10 Commits
Author SHA1 Message Date
songyinyin 8dd58035a6 test github action v12 2023-10-25 10:58:21 +08:00
songyinyin ee55a4104a test github action v11 2023-10-25 10:53:55 +08:00
songyinyin 1651f2ca1c test github action v10 2023-10-25 10:50:38 +08:00
songyinyin ba93dcbeac test github action v09 2023-10-25 10:36:20 +08:00
songyinyin cbc7ea7d25 test github action v08 2023-10-25 10:33:24 +08:00
songyinyin e0c6885b03 test github action v07 2023-10-25 10:30:58 +08:00
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
songyinyin d78a1d7d9b test github action v03 2023-10-24 19:04:30 +08:00
+30 -12
View File
@@ -21,6 +21,17 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
- name: setup node v13.12.0
uses: actions/setup-node@v3
with:
node-version: 13.12.0
# cache: 'npm' # 使用缓存需要把 package-lock.json 也上传到 git 上
- name: build neutrino-proxy-admin
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:
@@ -36,28 +47,35 @@ 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
# 上传构建产物
- name: Upload artifact
uses: actions/[email protected]
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:
name: neutrino-proxy-server-and-client
path: |
neutrino-proxy-server/target/neutrino-proxy-server.jar
neutrino-proxy-client/target/neutrino-proxy-client.jar
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
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
neutrino-proxy-server.jar
neutrino-proxy-client.jar
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 }}