This commit is contained in:
parent
db054d9111
commit
3095f6670a
@ -30,13 +30,14 @@ jobs:
|
|||||||
echo "done!"
|
echo "done!"
|
||||||
- name: "setup go for release script"
|
- name: "setup go for release script"
|
||||||
run: |
|
run: |
|
||||||
wget --no-check-certificate https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
|
wget --no-check-certificate https://golang.google.cn/dl/go1.21.6.linux-amd64.tar.gz
|
||||||
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
|
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
|
||||||
ln -s /usr/local/go/bin/go /usr/bin/go
|
ln -s /usr/local/go/bin/go /usr/bin/go
|
||||||
go version
|
go version
|
||||||
- name: "Release"
|
- name: "Release"
|
||||||
uses: https://ssl.lunadeer.cn:14446/actions/release-action@main
|
uses: https://ssl.lunadeer.cn:14446/zhangyuheng/release-action@main
|
||||||
with:
|
with:
|
||||||
|
note: "提示:带 ‘original-’ 前缀的文件无法用于运行,请下载不带此前缀的版本。"
|
||||||
files: |-
|
files: |-
|
||||||
staging/*.jar
|
staging/*.jar
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.lunadeer</groupId>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>ColorfulMap</artifactId>
|
<artifactId>ColorfulMap</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>ColorfulMap</name>
|
<name>ColorfulMap</name>
|
||||||
|
@ -73,7 +73,7 @@ public class GiteaReleaseCheck {
|
|||||||
JSONObject latestRelease = (JSONObject) releaseList.get(0);
|
JSONObject latestRelease = (JSONObject) releaseList.get(0);
|
||||||
GiteaRelease release = new GiteaRelease();
|
GiteaRelease release = new GiteaRelease();
|
||||||
release.tag_name = (String) latestRelease.get("tag_name");
|
release.tag_name = (String) latestRelease.get("tag_name");
|
||||||
release.message = getTagMessage(release.tag_name);
|
release.message = (String) latestRelease.get("body");
|
||||||
release.html_url = (String) latestRelease.get("html_url");
|
release.html_url = (String) latestRelease.get("html_url");
|
||||||
JSONArray assets = (JSONArray) latestRelease.get("assets");
|
JSONArray assets = (JSONArray) latestRelease.get("assets");
|
||||||
if (assets.size() > 0) {
|
if (assets.size() > 0) {
|
||||||
@ -87,7 +87,7 @@ public class GiteaReleaseCheck {
|
|||||||
XLogger.debug("HTML URL: " + latest_release.html_url);
|
XLogger.debug("HTML URL: " + latest_release.html_url);
|
||||||
if (isNewVersion(current_version, latest_release.tag_name)) {
|
if (isNewVersion(current_version, latest_release.tag_name)) {
|
||||||
XLogger.info("发现新版本:" + latest_release.tag_name);
|
XLogger.info("发现新版本:" + latest_release.tag_name);
|
||||||
XLogger.info("更新内容:" + latest_release.message);
|
XLogger.info("版本信息:" + latest_release.message);
|
||||||
XLogger.info("下载页面:" + latest_release.html_url);
|
XLogger.info("下载页面:" + latest_release.html_url);
|
||||||
} else {
|
} else {
|
||||||
XLogger.info("当前已是最新版本:" + current_version);
|
XLogger.info("当前已是最新版本:" + current_version);
|
||||||
|
Loading…
Reference in New Issue
Block a user