Skip to content

Commit

Permalink
chore: add app id annotation (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Sep 14, 2023
1 parent 6624174 commit 56b690f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 4 additions & 3 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 订阅链接"
Expand Down

0 comments on commit 56b690f

Please sign in to comment.