Skip to content

Update PyPI development status #20

Update PyPI development status

Update PyPI development status #20

name: Publish tagged commits to TestPyPI
on:
push:
tags:
- v*.*.*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip build wheel twine
- name: Build dists
run: |
python -m build .
- name: Test build and wheel
run: |
cd dist && pip install $(ls *.whl) && twine check *
- name: Publish distribution to TestPyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: True