This commit is contained in:
zzstoatzz 2024-11-30 17:24:18 -06:00
commit 67de515d1a
10 changed files with 136 additions and 743 deletions

View file

@ -5,28 +5,22 @@ on:
workflow_dispatch:
jobs:
publish-pypi-release:
pypi-publish:
name: Upload to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
id-token: write
id-token: write # For PyPI's trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: "**/pyproject.toml"
- name: Install dependencies
run: |
pip install setuptools wheel build
fetch-depth: 0
- name: "Install uv"
uses: astral-sh/setup-uv@v3
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
run: uv build
- name: Publish to PyPi
run: uv publish -v dist/*