add publish workflow

pull/419/head v2.1.0
halcy 2025-08-17 23:52:35 +03:00
rodzic 21882c4b79
commit 4c8875a5c5
2 zmienionych plików z 41 dodań i 0 usunięć

39
.github/workflows/publish.yml vendored 100644
Wyświetl plik

@ -0,0 +1,39 @@
# Pipeline to build and publish to pypi on tag starting with v
name: Publish to PyPI on Tag
on:
push:
tags:
- "v*"
permissions:
contents: read
id-token: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build sdist and wheel
run: |
python -m build
twine check dist/*
- name: Publish to PyPI (Trusted Publishing)
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true

Wyświetl plik

@ -1,3 +1,5 @@
API relevant changes since last release / "to implement" list:
Refer to mastodon changelog and API docs for details when implementing, add or modify tests where needed
[ ] Figure out a way to rerecord streaming API tests.