-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.3.0: 初步实现移动端API(JmApiClient),优化正则表达式并适配大陆直连域名,增加测试,优化工作流 (#137)
- Loading branch information
Showing
16 changed files
with
347 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release (auto) | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Parse Tag & Body | ||
id: tb | ||
run: | | ||
commit_message=$(git log --format=%B -n 1 ${{ github.sha }}) | ||
python release.py "$commit_message" | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tb.outputs.tag }} | ||
body: ${{ steps.tb.outputs.body }} | ||
|
||
- name: Build Module | ||
run: | | ||
python -m pip install build | ||
python -m build | ||
- name: Release PYPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_JMCOMIC }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 大版本更新内容计划 | ||
|
||
| 版本范围 | 更新内容 | | ||
|:--------:|:--------------------------------------:| | ||
| v2.3.* | 实现移动端API的基础功能,统一HTML和API的实现 | | ||
| v2.2.* | 新的插件体系,新的命令行调用,完善搜索功能。 | | ||
| v2.1.* | 拆分Downloader抽象调度,优化可扩展性、代码复用性、模块级别自定义。 | | ||
| v2.0.* | 重新设计合理的抽象层次,实现请求重试切换域名机制,新的option配置设计。 | | ||
| v1.\*.\* | 基于HTML实现基础功能。 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import sys | ||
import re | ||
|
||
|
||
def add_output(k, v): | ||
print(f'set {k} = {v}') | ||
print(os.system(f'echo {k}={v} >> $GITHUB_OUTPUT')) | ||
|
||
|
||
msg = sys.argv[1] | ||
print(f'msg: {msg}') | ||
p = re.compile('(.*?): ?(.*)') | ||
match = p.search(msg) | ||
assert match is not None, f'commit message format is wrong: {msg}' | ||
|
||
tag, body = match[1], match[2] | ||
|
||
add_output('tag', tag) | ||
add_output('body', body) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.