new version
This commit is contained in:
parent
10441cc24e
commit
98843c2b67
@ -16,7 +16,6 @@ jobs:
|
|||||||
|
|
||||||
- name: setup java
|
- name: setup java
|
||||||
uses: https://git.mingliqiye.com/Actions/setup-java@v4
|
uses: https://git.mingliqiye.com/Actions/setup-java@v4
|
||||||
|
|
||||||
with:
|
with:
|
||||||
distribution: 'oracle'
|
distribution: 'oracle'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
@ -28,7 +27,11 @@ jobs:
|
|||||||
|
|
||||||
- name: releases
|
- name: releases
|
||||||
run: |
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
16
build.gradle
16
build.gradle
@ -6,11 +6,11 @@ plugins {
|
|||||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
String jarNameStr = "${groups}-${versions}"
|
String jarNameStr = "${GROUPSID}-${VERSIONS}"
|
||||||
String jarName = "${jarNameStr}.jar"
|
String jarName = "${jarNameStr}.jar"
|
||||||
|
|
||||||
group = groups
|
group = GROUPSID
|
||||||
version = versions
|
version = VERSIONS
|
||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -132,15 +132,15 @@ shadowJar {
|
|||||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
minimize()
|
minimize()
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class': maimClassStr
|
attributes 'Main-Class': MAIMCLASSSTR
|
||||||
attributes 'Implementation-Title': groups
|
attributes 'Implementation-Title': GROUPSID
|
||||||
attributes 'Implementation-Version': versions
|
attributes 'Implementation-Version': VERSIONS
|
||||||
attributes 'Email': 'minglipro@163.com'
|
attributes 'Email': 'minglipro@163.com'
|
||||||
attributes 'Implementation-Vendor': 'minglipro|Armamem0t'
|
attributes 'Implementation-Vendor': 'minglipro|Armamem0t'
|
||||||
attributes 'Copyright': copyright
|
attributes 'COPYRIGHT': 'Copyright 2026 minglipro All rights reserved.'
|
||||||
attributes 'Env': 'prod'
|
attributes 'Env': 'prod'
|
||||||
attributes 'LICENSE': 'Apache License 2.0'
|
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')
|
attributes 'Updated': new Date().format('yyyy-MM-dd HH:mm:ss')
|
||||||
}
|
}
|
||||||
from {
|
from {
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
groups=com.mingliqiye.gitea.releases
|
GROUPSID=com.mingliqiye.gitea.releases
|
||||||
versions=1.0
|
VERSIONS=1.1
|
||||||
maimClassStr=com.mingliqiye.gitea.releases.Main
|
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
|
|
Loading…
x
Reference in New Issue
Block a user