From cfbed99ecebfa2ce859c2ea663d10b4bc6f9120d Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Sun, 15 Jun 2025 09:29:34 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main.yaml | 25 +++++++++++++++++++++++++ build.gradle.kts | 4 +++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/main.yaml diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml new file mode 100644 index 0000000..8909075 --- /dev/null +++ b/.gitea/workflows/main.yaml @@ -0,0 +1,25 @@ +name: Publish Project + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: temurin + cache: gradle + - name: Build Project + run: chmod +x gradlew && ./gradlew build --no-daemon + - name: Publish to Release + uses: softprops/action-gh-release@v2 + with: + files: build/*.jar diff --git a/build.gradle.kts b/build.gradle.kts index 1da63c7..79bd02a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,9 @@ plugins { id("java") } +base { + archivesName = "HamsterScript" +} group = "cn.hamster3.mc.plugin" version = "1.1.0" @@ -41,7 +44,6 @@ tasks { options.encoding = "UTF-8" } withType { - archiveBaseName = "HamsterScript" from(rootProject.file("LICENSE")) duplicatesStrategy = DuplicatesStrategy.EXCLUDE destinationDirectory = rootProject.layout.buildDirectory