Update again.

This commit is contained in:
Andrew Lalis 2023-06-23 20:53:44 +02:00
parent 32f98117ef
commit b07d36c0df
2 changed files with 28 additions and 3 deletions

25
.github/workflows/build.yml vendored Normal file
View File

@ -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

View File

@ -1,7 +1,7 @@
name: Make Release
on:
push:
create:
branches: ["main"]
tags: ["v*"]
@ -26,11 +26,11 @@ jobs:
run: |
mvn -B package --file pom.xml
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
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
id: create_release