Compare commits
2 Commits
Auto-Relea
...
master
Author | SHA1 | Date | |
---|---|---|---|
9ce0894295 | |||
1c459ca6a2 |
@ -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: 'zulu'
|
||||
java-version: '8'
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
./gradlew
|
||||
./gradlew build-jar
|
||||
gradle
|
||||
gradle build-jar
|
||||
|
||||
- name: releases
|
||||
run: |
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user