This commit is contained in:
25
.gitea/workflows/main.yaml
Normal file
25
.gitea/workflows/main.yaml
Normal file
@@ -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
|
@@ -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<Jar> {
|
||||
archiveBaseName = "HamsterScript"
|
||||
from(rootProject.file("LICENSE"))
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
destinationDirectory = rootProject.layout.buildDirectory
|
||||
|
Reference in New Issue
Block a user