mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-11-04 14:49:43 +08:00
26 lines
583 B
YAML
26 lines
583 B
YAML
name: 发布PYPI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "releases/**" ]
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
name: 构建并发布 jmcomic 到 PyPI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.7"
|
|
- name: 构建模块
|
|
run: |
|
|
python -m pip install build
|
|
python -m build
|
|
- name: 发布上传
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
password:
|
|
${{ secrets.PYPI_JMCOMIC }}
|