Compare commits

...

7 Commits

Author SHA1 Message Date
9ce0894295
更新 .gitea/workflows/action.yaml
All checks were successful
Gitea Actions Build / build and releases (push) Successful in 45s
2025-06-26 21:21:38 +08:00
1c459ca6a2
更新 install.sh
Some checks failed
Gitea Actions Build / build and releases (push) Has been cancelled
2025-06-26 21:20:40 +08:00
187dd35820
up use jdk8
All checks were successful
Gitea Actions Build / build and releases (push) Successful in 5m3s
2025-06-19 08:27:49 +08:00
8bee2d447d
use jdk8
Some checks failed
Gitea Actions Build / build and releases (push) Failing after 4m11s
2025-06-19 08:14:04 +08:00
2b78e8fdae
use jdk8
Some checks failed
Gitea Actions Build / build and releases (push) Has been cancelled
2025-06-19 08:12:48 +08:00
d348bae913
wp
All checks were successful
Gitea Actions Build / build and releases (push) Successful in 5m24s
2025-06-18 23:47:56 +08:00
18afe87e4e
bg
Some checks failed
Gitea Actions Build / build and releases (push) Failing after 8m15s
2025-06-18 23:33:42 +08:00
5 changed files with 22 additions and 29 deletions

View File

@ -9,22 +9,15 @@ on:
jobs:
Build And Releases:
name: build and releases
runs-on: ubuntu-latest
runs-on: ubuntu-dev
steps:
- name: Check out repository code
uses: https://git.mingliqiye.com/Actions/checkout@v4
- name: setup java
uses: https://git.mingliqiye.com/Actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
- name: build
run: |
./gradlew
./gradlew build-jar
gradle
gradle build-jar
- name: releases
run: |

View File

@ -8,7 +8,7 @@
- 为了下载速度与处处碰壁的GITHUB
- 特地开发了一款可以上传gitea.releases的脚本
- 使用Java17 + gradle8.12 + okhttp3 + giteaWebApi
- 使用Java8 + gradle8.12 + okhttp3 + giteaWebApi
### Gitea文档
@ -25,8 +25,8 @@
- name: setup java
uses: https://git.mingliqiye.com/Actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
distribution: 'zulu'
java-version: '8'
- name: releases
run: |
@ -42,8 +42,8 @@
- name: setup java
uses: https://git.mingliqiye.com/Actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
distribution: 'zulu'
java-version: '8'
- name: releases
run: |

View File

@ -8,7 +8,7 @@
- Developed to address slow download speeds and accessibility issues with GitHub
- A script specifically designed to upload files to Gitea Releases
- Built with Java 17 + Gradle 8.12 + OkHttp3 + Gitea Web API
- Built with Java 8 + Gradle 8.12 + OkHttp3 + Gitea Web API
### Gitea Documentation
@ -23,8 +23,8 @@ action.yaml
- name: Setup Java
uses: https://git.mingliqiye.com/Actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
distribution: 'zulu'
java-version: '8'
- name: Releases Upload
run: |

View File

@ -12,14 +12,14 @@ String jarName = "${jarNameStr}.jar"
group = GROUPSID
version = VERSIONS
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
mavenLocal()
maven { name "M2"; url 'https://plugins.gradle.org/m2/' }
mavenCentral()
}
}
dependencies {
@ -28,8 +28,8 @@ dependencies {
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.16'
implementation 'ch.qos.logback:logback-classic:1.5.16'
implementation 'org.slf4j:slf4j-api:2.0.16'
implementation 'ch.qos.logback:logback-classic:1.2.12'
implementation 'org.slf4j:slf4j-api:1.7'
implementation 'args4j:args4j:2.37'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.57'
implementation 'commons-cli:commons-cli:1.9.0'

View File

@ -1,13 +1,13 @@
curl -o releases.json https://git.mingliqiye.com/api/v1/repos/Actions/com.mingliqiye.gitea.releases/releases
FILENAME=$(python -c "
FILENAME=$(python3 -c "
import json;
with open('releases.json') as f:
data = json.load(f)
print(data[0]['assets'][0]['name'])
")
DOWNLOADURL=$(python -c "
DOWNLOADURL=$(python3 -c "
import json;
with open('releases.json') as f:
data = json.load(f)