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 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