Skip to content

Commit 7585551

Browse files
committed
action
1 parent b27e543 commit 7585551

6 files changed

Lines changed: 155 additions & 259 deletions

File tree

.github/workflows/client.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: AllMusic Client
9+
10+
on:
11+
push:
12+
# Sequence of patterns matched against refs/heads
13+
branches:
14+
- 'releases/**'
15+
# Sequence of patterns matched against refs/tags
16+
tags:
17+
- '*'
18+
19+
jobs:
20+
build_onejar_fabric_1_16_5:
21+
runs-on: windows-latest
22+
permissions:
23+
contents: read
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: 'true'
29+
- name: Set up JDK 25
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: '25'
33+
distribution: 'temurin'
34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@v3
36+
- name: build
37+
shell: cmd
38+
run: |
39+
gradlew :client:buildClient
40+
- name: update
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: "allmusic_client"
44+
path: client/build/
45+
- name: Create Pre-release and Upload Assets
46+
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
47+
uses: softprops/action-gh-release@v1
48+
with:
49+
prerelease: true
50+
tag_name: ${{ github.ref_name }}
51+
name: "Pre-release ${{ github.ref_name }}"
52+
body: "自动构建的预发布版本"
53+
files: |
54+
client/build/*.jar
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/onejar.yml

Lines changed: 0 additions & 227 deletions
This file was deleted.

.github/workflows/server.yml

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,56 @@
1-
name: AllMusic Server
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: AllMusic Client
29

310
on:
411
push:
512
# Sequence of patterns matched against refs/heads
6-
branches:
13+
branches:
714
- 'releases/**'
815
# Sequence of patterns matched against refs/tags
9-
tags:
16+
tags:
1017
- '*'
1118

1219
jobs:
13-
build_all:
20+
build_onejar_fabric_1_16_5:
1421
runs-on: windows-latest
1522
permissions:
1623
contents: read
1724
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
with:
21-
submodules: 'true'
22-
- name: Set up JDK 25
23-
uses: actions/setup-java@v4
24-
with:
25-
java-version: '25'
26-
distribution: 'temurin'
27-
- name: Setup Gradle
28-
uses: gradle/actions/setup-gradle@v3 # v3.1.0
29-
- name: build
30-
shell: cmd
31-
run: |
32-
gradlew build
33-
- name: update
34-
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: "allmusic_server"
38-
path: build/
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: 'true'
29+
- name: Set up JDK 25
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: '25'
33+
distribution: 'temurin'
34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@v3
36+
- name: build
37+
shell: cmd
38+
run: |
39+
gradlew :server:buildServer
40+
- name: update
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: "allmusic_server"
44+
path: build/
45+
- name: Create Pre-release and Upload Assets
46+
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
47+
uses: softprops/action-gh-release@v1
48+
with:
49+
prerelease: true
50+
tag_name: ${{ github.ref_name }}
51+
name: "Pre-release ${{ github.ref_name }}"
52+
body: "自动构建的预发布版本"
53+
files: |
54+
build/*.jar
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)