From b07d36c0dfcb410e1c214140da2f3fa5555481a8 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 23 Jun 2023 20:53:44 +0200 Subject: [PATCH] Update again. --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ .github/workflows/make-release.yml | 6 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8dabb97 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 6f45c11..713a12c 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -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