diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f842af7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 + \ No newline at end of file diff --git a/TODO.md b/TODO.md index 21a118e..21739a0 100644 --- a/TODO.md +++ b/TODO.md @@ -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.