From a5dd1a2dbeaa9bfc15fe7cfcfa879d90ef35b30e Mon Sep 17 00:00:00 2001 From: LIlGG <1103069291@qq.com> Date: Tue, 10 Oct 2023 16:25:25 +0800 Subject: [PATCH 1/2] update app-store-release --- .github/workflows/workflow.yaml | 37 ++++++++++++++++++++++++++------- gradle.properties | 2 +- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 21a5d85..b4f70ed 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -17,8 +17,8 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - distribution: 'temurin' - cache: 'gradle' + distribution: "temurin" + cache: "gradle" java-version: 17 - name: Build with Gradle run: | @@ -27,12 +27,12 @@ jobs: version=${version#v} sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties ./gradlew clean build -x test - - name: Archive plugin-starter jar + - name: Archive plugin-live2d jar uses: actions/upload-artifact@v2 with: - name: plugin-starter + name: plugin-live2d path: | - build/libs/*-plain.jar + build/libs/*.jar retention-days: 1 github-release: @@ -40,10 +40,10 @@ jobs: needs: build if: github.event_name == 'release' steps: - - name: Download plugin-starter jar + - name: Download plugin-live2d jar uses: actions/download-artifact@v2 with: - name: plugin-starter + name: plugin-live2d path: build/libs - name: Get Name of Artifact id: get_artifact @@ -79,3 +79,26 @@ jobs: name: artifactName, data: await fs.readFile(artifactPathName) }); + + app-store-release: + runs-on: ubuntu-latest + needs: build + if: github.event_name == 'release' + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Download plugin-live2d jar + uses: actions/download-artifact@v2 + with: + name: plugin-live2d + path: build/libs + - name: Sync to Halo App Store + uses: halo-sigs/app-store-release-action@main + with: + github-token: ${{secrets.GITHUB_TOKEN}} + app-id: ${{secrets.APP_ID}} + release-id: ${{ github.event.release.id }} + assets-dir: "build/libs" + halo-username: ${{ secrets.HALO_USERNAME }} + halo-password: ${{ secrets.HALO_PASSWORD }} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 187fffb..b2cd5f8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.1.2 +version=1.1.3-SNAPSHOT \ No newline at end of file From 03d840229a7fe0a527051ddfbfddc536ccbea1ae Mon Sep 17 00:00:00 2001 From: LIlGG <1103069291@qq.com> Date: Tue, 10 Oct 2023 16:28:18 +0800 Subject: [PATCH 2/2] update plugin.yaml --- src/main/resources/plugin.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index dcdd850..4c018f2 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -4,7 +4,6 @@ metadata: name: PluginLive2d spec: enabled: true - version: 1.1.2 requires: ">=2.4.0" author: name: LIlGG