diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f0ac61..ce84a60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ name: Build and publish to PyPI -on: - release: - tags: - - "v*" +on: [release] jobs: @@ -26,6 +23,7 @@ jobs: python -m pip install --upgrade build twine python -m build python -m twine check --strict dist/* + - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@master with: diff --git a/MANIFEST.in b/MANIFEST.in index 1a69f4c..c19bcc9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include readme.md +include version.py \ No newline at end of file