mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
69a8545141
PDM-based CI on 3.14 (ruff, basedpyright, pytest); tag publish without git-cliff.
40 lines
802 B
YAML
Executable File
40 lines
802 B
YAML
Executable File
name: Release and Publish Python Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.14"
|
|
|
|
- name: Install build
|
|
run: python -m pip install --upgrade pip build
|
|
|
|
- name: Build package
|
|
run: python -m build --sdist --wheel --outdir dist/ .
|
|
|
|
- name: Publish package
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
- name: Create GitHub release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: |
|
|
dist/*
|
|
generate_release_notes: true
|