This commit is contained in:
Color_yr committed 2026-06-06 13:36:28 +08:00
1 parent b27e54358e
commit 7585551a3d
6 files changed
+155 -259

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: AllMusic Client
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build_onejar_fabric_1_16_5:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: build
shell: cmd
run: |
gradlew :client:buildClient
- name: update
uses: actions/upload-artifact@v4
with:
name: "allmusic_client"
path: client/build/
- name: Create Pre-release and Upload Assets
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: ${{ github.ref_name }}
name: "Pre-release ${{ github.ref_name }}"
body: "自动构建的预发布版本"
files: |
client/build/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-227
View File
@@ -1,227 +0,0 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: AllMusic OneJar
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build_onejar_fabric_1_16_5:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3 # v3.1.0
- name: build
shell: cmd
run: |
link.cmd && cd onejar && cd fabric_1_16_5 && gradlew build
- name: update
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
uses: actions/upload-artifact@v4
with:
name: "allmusic_onejar_fabric_1_16_5"
path: build/libs/
# build_onejar_fabric_1_20_1:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd fabric_1_20_1 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_fabric_1_20_1"
# path: build/libs/
# build_onejar_fabric_1_21:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd fabric_1_21 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_fabric_1_21"
# path: build/libs/
# build_onejar_fabric_1_21_6:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd fabric_1_21_6 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_fabric_1_21_6"
# path: build/libs/
# build_onejar_fabric_1_21_11:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd fabric_1_21_11 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_fabric_1_21_11"
# path: build/libs/
# build_onejar_neoforge_1_21:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd neoforge_1_21 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_neoforge_1_21"
# path: build/libs/
# build_onejar_neoforge_1_21_6:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd neoforge_1_21_6 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_neoforge_1_21_6"
# path: build/libs/
# build_onejar_neoforge_1_21_11:
# runs-on: windows-latest
# permissions:
# contents: read
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# submodules: 'true'
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'temurin'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3 # v3.1.0
# - name: build
# shell: cmd
# run: |
# link.cmd && cd onejar && cd neoforge_1_21_11 && gradlew build
# - name: update
# if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
# uses: actions/upload-artifact@v4
# with:
# name: "allmusic_onejar_neoforge_1_21_11"
# path: build/libs/
+43 -25
View File
@@ -1,38 +1,56 @@
name: AllMusic Server
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: AllMusic Client
on:
push:
# Sequence of patterns matched against refs/heads
branches:
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
tags:
- '*'
jobs:
build_all:
build_onejar_fabric_1_16_5:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3 # v3.1.0
- name: build
shell: cmd
run: |
gradlew build
- name: update
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
uses: actions/upload-artifact@v4
with:
name: "allmusic_server"
path: build/
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: build
shell: cmd
run: |
gradlew :server:buildServer
- name: update
uses: actions/upload-artifact@v4
with:
name: "allmusic_server"
path: build/
- name: Create Pre-release and Upload Assets
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'debug')
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: ${{ github.ref_name }}
name: "Pre-release ${{ github.ref_name }}"
body: "自动构建的预发布版本"
files: |
build/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}