mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-11-04 14:49:43 +08:00
28 lines
558 B
YAML
28 lines
558 B
YAML
name: 发布PYPI
|
|
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
release:
|
|
name: 构建并发布 jmcomic 到 PyPI
|
|
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: 构建模块
|
|
run: |
|
|
python -m pip install build
|
|
python -m build
|
|
|
|
- name: 发布PYPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
password: ${{ secrets.PYPI_JMCOMIC }}
|