Compare commits

...
9 Commits
Author SHA1 Message Date
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
songyinyin bd4f4a056d test github action v02 2023-10-24 18:48:10 +08:00
songyinyin 364d77f38f test github action 2023-10-24 18:38:24 +08:00
+67
View File
@@ -0,0 +1,67 @@
name: jar release
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
strategy:
fail-fast: true
matrix:
# 'ubuntu-latest', 'windows-latest', 'macos-latest'
# os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
os: ['ubuntu-latest']
name: build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
permissions:
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'
cache-dependency-path: neutrino-proxy-admin/package-lock.json
- 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:
java-version: '17.0.7' # for a specific JDK 17; or '17' for the latest JDK 17
distribution: 'graalvm' # New 'distribution' option
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven (neutrino-proxy-server)
run: |
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
- name: Build with Maven (neutrino-proxy-client)
run: |
cd neutrino-proxy-client
mvn clean package --file pom.xml --no-transfer-progress package
# GitHub 上创建 release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
neutrino-proxy-server/target/neutrino-proxy-server.jar
neutrino-proxy-client/target/neutrino-proxy-client.jar
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}