Update again.
This commit is contained in:
parent
32f98117ef
commit
b07d36c0df
|
@ -0,0 +1,25 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["*"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup JDK
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: "17"
|
||||||
|
distribution: "temurin"
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
id: build
|
||||||
|
run: mvn -B package --file pom.xml
|
|
@ -1,7 +1,7 @@
|
||||||
name: Make Release
|
name: Make Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
create:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
|
|
||||||
|
@ -26,11 +26,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mvn -B package --file pom.xml
|
mvn -B package --file pom.xml
|
||||||
asset=$(find target/ -type f -name "*jar-with-dependencies.jar")
|
asset=$(find target/ -type f -name "*jar-with-dependencies.jar")
|
||||||
echo "::set-output name=asset_path::$asset"
|
echo "name=asset_path::$asset" >> $GITHUB_STATE
|
||||||
|
|
||||||
- name: Extract Tag Version
|
- name: Extract Tag Version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "::set-output name=tag_version::${GITHUB_REF/refs\/tags\//}"
|
run: echo "name=tag_version::${GITHUB_REF/refs\/tags\//}" >> $GITHUB_STATE
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
Loading…
Reference in New Issue