From e7d5ffeb03f9a0d31fc98d8ad9a86bb2f425abb3 Mon Sep 17 00:00:00 2001 From: Color_yr <402067010@qq.com> Date: Sat, 6 Jun 2026 13:38:29 +0800 Subject: [PATCH] action --- .github/workflows/client.yml | 64 ++++++++++++++++++------------------ .github/workflows/server.yml | 2 +- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 091f8bf6..b8650358 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -22,35 +22,35 @@ jobs: 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 }} + - 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 }} diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index ddbd06a2..a504bb1d 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -5,7 +5,7 @@ # 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 +name: AllMusic Server on: push: