Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6694b7dc8 | ||
|
|
a2a5beaf5b | ||
|
|
418a44a7c2 |
@@ -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 }}
|
||||
Reference in New Issue
Block a user