new version

This commit is contained in:
Armamem0t 2025-06-18 19:33:05 +08:00
parent 10441cc24e
commit 98843c2b67
Signed by: minglipro
GPG Key ID: 5F355A77B22AA93B
4 changed files with 16 additions and 16 deletions

View File

@ -16,7 +16,6 @@ jobs:
- name: setup java
uses: https://git.mingliqiye.com/Actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
@ -28,7 +27,11 @@ jobs:
- name: releases
run: |
java -jar build/libs/com.mingliqiye.gitea.releases-1.0.jar -s "${{gitea.server_url}}" -o "${{gitea.repository_owner}}" -r ${{gitea.event.repository.name}} -t "${{gitea.token}}" -ti "Auto releases ${{gitea.sha}}" -b "# Auto releases wtih ${{gitea.event.head_commit.message}} - [${{gitea.sha}}](${{gitea.event.head_commit.url}})" -tn "Auto Releases" -a "build/libs"
source gradle.properties
GROUPSID=$(echo "$GROUPSID" | tr -d '\r')
VERSIONS=$(echo "$VERSIONS" | tr -d '\r')
FILENAME="${GROUPSID}-${VERSIONS}.jar"
java -jar ${VERSIONS} -s "${{gitea.server_url}}" -o "${{gitea.repository_owner}}" -r ${{gitea.event.repository.name}} -t "${{gitea.token}}" -ti "Auto releases ${{gitea.sha}} ${VERSIONS}" -b "# Auto releases wtih ${{gitea.event.head_commit.message}} - [${{gitea.sha}}](${{gitea.event.head_commit.url}})" -tn "Auto-Releases-${VERSIONS}" -a "build/libs"

View File

@ -6,11 +6,11 @@ plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
String jarNameStr = "${groups}-${versions}"
String jarNameStr = "${GROUPSID}-${VERSIONS}"
String jarName = "${jarNameStr}.jar"
group = groups
version = versions
group = GROUPSID
version = VERSIONS
repositories {
@ -132,15 +132,15 @@ shadowJar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
minimize()
manifest {
attributes 'Main-Class': maimClassStr
attributes 'Implementation-Title': groups
attributes 'Implementation-Version': versions
attributes 'Main-Class': MAIMCLASSSTR
attributes 'Implementation-Title': GROUPSID
attributes 'Implementation-Version': VERSIONS
attributes 'Email': 'minglipro@163.com'
attributes 'Implementation-Vendor': 'minglipro|Armamem0t'
attributes 'Copyright': copyright
attributes 'COPYRIGHT': 'Copyright 2026 minglipro All rights reserved.'
attributes 'Env': 'prod'
attributes 'LICENSE': 'Apache License 2.0'
attributes 'Created': createdTime
attributes 'Created': '2025-06-18 13:05:06'
attributes 'Updated': new Date().format('yyyy-MM-dd HH:mm:ss')
}
from {

View File

@ -1,6 +1,3 @@
groups=com.mingliqiye.gitea.releases
versions=1.0
maimClassStr=com.mingliqiye.gitea.releases.Main
copyright=Copyright 2026 @minglipro|Armamem0t All rights reserved.
createdTime=2025-06-18 13:05:06
systemProp.file.encoding=UTF-8
GROUPSID=com.mingliqiye.gitea.releases
VERSIONS=1.1
MAIMCLASSSTR=com.mingliqiye.gitea.releases.Main

View File