diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 88c6080..2ae8e36 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -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-feed jar + uses: actions/download-artifact@v2 + with: + name: plugin-feed + 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 }} diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index 329df9e..b6aeed7 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -1,11 +1,13 @@ apiVersion: plugin.halo.run/v1alpha1 kind: Plugin metadata: - # The name defines how the plugin is invoked,A unique name name: PluginFeed + annotations: + # Add supports for Halo App Store + # https://halo.run/store/apps/app-KhIVw + "store.halo.run/app-id": "app-KhIVw" spec: enabled: true - # 'version' is a valid semantic version string (see semver.org). version: 1.1.1 requires: ">=2.4.0" author: @@ -14,7 +16,6 @@ spec: logo: https://halo.run/logo settingName: plugin-feed-setting configMapName: plugin-feed-config - # 'homepage' usually links to the GitHub repository of the plugin homepage: https://github.com/halo-sigs/plugin-feed displayName: "RSS" description: "为站点生成 RSS 订阅链接"