Compare commits

...

2 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
2 changed files with 5 additions and 12 deletions

View File

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

View File

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