kopia lustrzana https://github.com/halcy/Mastodon.py
rodzic
21882c4b79
commit
4c8875a5c5
|
@ -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
|
||||
|
2
TODO.md
2
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.
|
||||
|
|
Ładowanie…
Reference in New Issue