Skip to content

Commit 3675a9d

Browse files
authored
Merge pull request #71 from simple-robot/dev/main
Release: v1.0.1
2 parents b1fceaa + a88c946 commit 3675a9d

31 files changed

+364
-101
lines changed

.changelog/v1.0.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
> 对应核心版本: [**v4.1.0**](https://github.com/simple-robot/simpler-robot/releases/tag/v4.1.0)
2+
3+
4+
我们欢迎并期望着您的的[反馈](https://github.com/simple-robot/simbot-component-onebot/issues)[协助](https://github.com/simple-robot/simbot-component-onebot/pulls)
5+
感谢您的贡献与支持!
6+
7+
也欢迎您为我们献上一颗 `star`,这是对我们最大的鼓励与认可!

.github/workflows/deploy-website.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- main
66
- master
7-
# - dev/main
7+
- dev/main
88
paths:
99
- 'Writerside/**'
1010
- '.github/workflows/deploy-website.yml'
@@ -123,31 +123,31 @@ jobs:
123123
uses: actions/deploy-pages@v1
124124

125125
# https://www.jetbrains.com/help/writerside/configure-search.html
126-
publish-indexes:
127-
# Requires the build-job results
128-
needs: [build, test]
129-
runs-on: ubuntu-latest
130-
container:
131-
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3
132-
133-
env:
134-
135-
CONFIG_JSON_VERSION: ${{ fromJSON(needs.build.outputs.config_json).productVersion }}
136-
137-
steps:
138-
- name: Download artifact
139-
uses: actions/download-artifact@v3
140-
with:
141-
name: algolia-indexes
142-
143-
- name: Unzip artifact
144-
run: |
145-
unzip -O UTF-8 -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
146-
env "algolia-key=${{secrets.ALGOLIA_KEY}}" java -jar /opt/builder/help-publication-agent.jar \
147-
update-index \
148-
--application-name ${{env.ALGOLIA_APP_NAME}} \
149-
--index-name ${{env.ALGOLIA_INDEX_NAME}} \
150-
--product ${{env.INSTANCE_NAME}} \
151-
--version ${{env.CONFIG_JSON_VERSION}} \
152-
--index-directory algolia-indexes/ \
153-
2>&1 | tee algolia-update-index-log.txt
126+
# publish-indexes:
127+
# # Requires the build-job results
128+
# needs: [build, test]
129+
# runs-on: ubuntu-latest
130+
# container:
131+
# image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3
132+
#
133+
# env:
134+
#
135+
# CONFIG_JSON_VERSION: ${{ fromJSON(needs.build.outputs.config_json).productVersion }}
136+
#
137+
# steps:
138+
# - name: Download artifact
139+
# uses: actions/download-artifact@v3
140+
# with:
141+
# name: algolia-indexes
142+
#
143+
# - name: Unzip artifact
144+
# run: |
145+
# unzip -O UTF-8 -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
146+
# env "algolia-key=${{secrets.ALGOLIA_KEY}}" java -jar /opt/builder/help-publication-agent.jar \
147+
# update-index \
148+
# --application-name ${{env.ALGOLIA_APP_NAME}} \
149+
# --index-name ${{env.ALGOLIA_INDEX_NAME}} \
150+
# --product ${{env.INSTANCE_NAME}} \
151+
# --version ${{env.CONFIG_JSON_VERSION}} \
152+
# --index-directory algolia-indexes/ \
153+
# 2>&1 | tee algolia-update-index-log.txt

.github/workflows/publish-kdoc.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish KDoc
2+
on:
3+
workflow_dispatch:
4+
5+
6+
env:
7+
JAVA_VERSION: 21
8+
JAVA_DISTRIBUTION: zulu
9+
GRADLE_VERSION: 8.5
10+
IS_CI: true
11+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
12+
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
13+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
14+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
15+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
16+
GRADLE_OPTS: "-XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8"
17+
18+
jobs:
19+
deploy-doc:
20+
name: Deploy KDoc
21+
runs-on: ubuntu-latest
22+
steps:
23+
# 检出仓库代码
24+
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
fetch-depth: 0
28+
# setup Java
29+
- uses: actions/setup-java@v4
30+
with:
31+
distribution: ${{ env.JAVA_DISTRIBUTION }}
32+
java-version: ${{ env.JAVA_VERSION }}
33+
34+
- name: Generate documentation
35+
uses: gradle/actions/setup-gradle@v3
36+
with:
37+
gradle-version: ${{ env.GRADLE_VERSION }}
38+
arguments: |
39+
dokkaHtmlMultiModule
40+
--info
41+
--warning-mode all
42+
-x test
43+
--build-cache
44+
-Porg.gradle.jvmargs="-Xmx8g -Xms2g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"
45+
46+
- name: Push to doc repository
47+
uses: peaceiris/actions-gh-pages@v3
48+
with:
49+
personal_token: ${{ secrets.PUSH_TOKEN }}
50+
external_repository: simple-robot-library/simbot3-api-docs
51+
publish_branch: kdoc-deploy/component-onebot
52+
publish_dir: ./build/dokka/html
53+
# deploy to sub dir
54+
destination_dir: components/onebot
55+

.github/workflows/publish-snapshot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ on:
1616
- 'build.gradle.kts'
1717
- 'settings.gradle.kts'
1818
- 'gradle.properties'
19-
19+
tags-ignore:
20+
- v**
2021
# 手动触发工作流
2122
workflow_dispatch:
2223

24+
25+
2326
env:
2427
JAVA_VERSION: 21
2528
JAVA_DISTRIBUTION: zulu
Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
1-
.library-name a::before {
2-
background: url("../images/logo-icon.svg") center no-repeat;
3-
background-size: contain;
4-
width: 40px;
5-
height: 40px;
6-
top: -12px;
7-
left: -50px;
1+
/*
2+
* Copyright (c) 2024. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
:root {
25+
--dokka-logo-image-url: url('../images/logo-icon-light.svg');
826
}
Lines changed: 78 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)