From 51692b5cd9b0671df2c8eb49a9bf3692d313c1d3 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 14 Jul 2023 17:32:10 +0800 Subject: [PATCH] chore: add halo app store release step (#46) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加发布到 Halo 应用市场的 CI 步骤。 https://github.com/halo-sigs/app-store-release-action /kind improvement ```release-note None ``` --- .github/workflows/workflow.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 4493d74..973a1db 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -103,3 +103,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-comment-widget jar + uses: actions/download-artifact@v2 + with: + name: plugin-comment-widget + 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 }}