From 0e7f03dba1becfc07e0131a97f4b48a213aada03 Mon Sep 17 00:00:00 2001 From: loki5512344 Date: Wed, 10 Jun 2026 23:42:23 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20GitHub=20Actions=20(build=20+=20release)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 47 ++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bb366a2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build & Test + +on: + push: + branches: [main, develop] + pull_request: + branches: [main] + +jobs: + build: + name: Build LoChat + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build & Test + run: ./gradlew build --no-daemon + + - name: JaCoCo Report + uses: actions/upload-artifact@v4 + with: + name: jacoco-report + path: build/reports/jacoco/test/html/ + + - name: Test Results + uses: actions/upload-artifact@v4 + with: + name: test-results + path: build/test-results/ + + - name: Plugin JAR + uses: actions/upload-artifact@v4 + with: + name: LoChat-Plugin + path: build/libs/LoChat-*.jar diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..60fc543 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,51 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Create Release + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build + run: ./gradlew clean build --no-daemon + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + name: "LoChat ${{ github.ref_name }}" + body: | + ## πŸš€ LoChat ${{ github.ref_name }} + + - Π‘Π΅Ρ€Π²Π΅Ρ€: Paper/Folia 1.21+ + - Java: 21 + + ### πŸ“¦ Установка + Π‘ΠΊΠΎΠΏΠΈΡ€ΡƒΠΉΡ‚Π΅ `LoChat-*.jar` Π² ΠΏΠ°ΠΏΠΊΡƒ `plugins/` сСрвСра ΠΈ ΠΏΠ΅Ρ€Π΅Π·Π°Π³Ρ€ΡƒΠ·ΠΈΡ‚Π΅. + + ### πŸ”§ Зависимости (ΠΎΠΏΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎ) + - PlaceholderAPI + - PlayerPoints + - LuckPerms + - SkinsRestorer + + ΠŸΠΎΠ»Π½Ρ‹ΠΉ список ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ: [Commits](https://github.com/loki5512344/LoChat/commits/main) + files: build/libs/LoChat-*.jar + generateReleaseNotes: true