mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-11-04 14:49:43 +08:00
42 lines
934 B
YAML
42 lines
934 B
YAML
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 }}
|