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