v2.5.8: 新增插件【订阅本子更新插件】,可以自动订阅本子的章节更新,并下载和发送邮件通知; 优化代码。 (#216) #2
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
# auto release and publish | |
name: Auto Release & Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.head_commit.message, 'v') | |
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 .github/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_path: release_body.txt | |
- name: Build | |
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 }} |