forked from AliceBotProject/alicebot
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (60 loc) · 1.92 KB
/
release.yml
File metadata and controls
77 lines (60 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
workflow_dispatch:
jobs:
update-api-doc:
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Install the project
run: uv sync --all-extras --all-packages --group dev --group docs
shell: bash
- name: Remove API Doc
run: rm -rf docs/api
- name: Build API Doc
run: uv run sophia-doc alicebot -o docs/api --anchor-extend --ignore-data --overwrite --exclude-module-name --init-file-name index.md
shell: bash
env:
ALICEBOT_DEV: '1'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'docs: 更新 API 文档'
title: 'docs: 更新 API 文档'
body: 自动更新 API 文档
branch: docs/update-api-docs
base: main
build:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Install the project
run: uv sync --all-extras --all-packages --group dev
shell: bash
- run: uv build -o dist
shell: bash
- run: uv build -o dist --package alicebot-adapter-apscheduler
shell: bash
- run: uv build -o dist --package alicebot-adapter-cqhttp
shell: bash
- run: uv build -o dist --package alicebot-adapter-onebot
shell: bash
- run: uv build -o dist --package alicebot-adapter-dingtalk
shell: bash
- run: uv build -o dist --package alicebot-adapter-mirai
shell: bash
- run: uv build -o dist --package alicebot-adapter-telegram
shell: bash
- run: uv publish
shell: bash