From e36d760c624a833f66c0a8e2fafe1ab5efd581fa Mon Sep 17 00:00:00 2001 From: Russell Banks <74878137+russellbanks@users.noreply.github.com> Date: Tue, 16 May 2023 19:11:07 +0100 Subject: [PATCH] Create Release.yml --- .github/workflows/Release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..083e901 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Build with Gradle + run: ./gradlew build + + - name: Release JAR + if: matrix.os == 'ubuntu-latest' + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + files: build/libs/*-all.jar