diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index fcca4ea8..c77a0550 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -26,6 +26,10 @@ version-resolver: - 'patch' default: patch template: | - ## Changes + ## Documentation + + See: https://v2.nonebot.dev + + ## 💫 Changes $CHANGES diff --git a/.github/workflows/nonebot_plugin_docs.yml b/.github/workflows/nonebot_plugin_docs.yml new file mode 100644 index 00000000..757ef41a --- /dev/null +++ b/.github/workflows/nonebot_plugin_docs.yml @@ -0,0 +1,40 @@ +name: Release Nonebot Plugin Docs + +on: + release: + types: [ published ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '12' + - run: npm ci + - name: Build Docs + env: + VUEPRESS_BASE: '/docs/' + run: npx vuepress build docs --dest packages/nonebot-plugin-docs/nonebot_plugin_docs/dist + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: "x64" + - name: Install Poetry + run: | + python -m pip install --upgrade pip + pip install poetry + + - name: Publish Package + run: | + export NONEBOT_VERSION=`poetry version -s` + cd packages/nonebot-plugin-docs/ + poetry version $NONEBOT_VERSION + poetry build + poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} diff --git a/.github/workflows/plugin_issue.yml b/.github/workflows/plugin_issue.yml new file mode 100644 index 00000000..573a324b --- /dev/null +++ b/.github/workflows/plugin_issue.yml @@ -0,0 +1,25 @@ +name: 'Plugin Issue Bot' + +on: + push: + branches: + - master + issues: + types: [opened, reopened, edited] + pull_request: + types: [closed] + +jobs: + issue_bot: + runs-on: ubuntu-latest + name: plugin issue bot + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: NoneBot2 Plugin Issue Bot + uses: he0119/nonebot2-plugin-issue-bot@v0.2 + with: + token: ${{ secrets.GH_TOKEN }} + base: master + path: docs/.vuepress/public/plugins.json diff --git a/docs/.vuepress/public/plugins.json b/docs/.vuepress/public/plugins.json index 007aec4c..6fa84155 100644 --- a/docs/.vuepress/public/plugins.json +++ b/docs/.vuepress/public/plugins.json @@ -14,5 +14,29 @@ "desc": "将B站UP主的动态和直播信息推送至QQ", "author": "SK-415", "repo": "SK-415/HarukaBot" + }, + { + "id": "nonebot_plugin_rauthman", + "link": "nonebot-plugin-rauthman", + "name": "rauthman", + "desc": "基于规则的授权管理", + "author": "Lancercmd", + "repo": "Lancercmd/nonebot_plugin_rauthman" + }, + { + "id": "nonebot_plugin_docs", + "link": "nonebot-plugin-docs", + "author": "nonebot", + "desc": "在本地浏览NoneBot文档", + "name": "NoneBot离线文档", + "repo": "nonebot/nonebot2/tree/master/packages/nonebot-plugin-docs" + }, + { + "id": "nonebot_plugin_sentry", + "link": "nonebot-plugin-sentry", + "author": "yanyongyu", + "desc": "使用Sentry监控机器人日志并处理报错", + "name": "Sentry日志监控", + "repo": "cscs181/QQ-GitHub-Bot/tree/master/src/plugins/nonebot_plugin_sentry" } -] +] \ No newline at end of file diff --git a/packages/nonebot-plugin-docs/README.md b/packages/nonebot-plugin-docs/README.md new file mode 100644 index 00000000..df099b03 --- /dev/null +++ b/packages/nonebot-plugin-docs/README.md @@ -0,0 +1,27 @@ +
+ +