diff --git a/.github/workflows/publication.yml b/.github/workflows/publication.yml new file mode 100644 index 0000000..f38db8f --- /dev/null +++ b/.github/workflows/publication.yml @@ -0,0 +1,17 @@ +name: Publication +on: + release: + types: [created] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.8' + - run: python -m pip install --upgrade tox-gh-actions + - env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: tox -e publish -- upload diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ea1fb2b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -dist: xenial -language: python -python: '3.8' -install: pip install tox -script: tox -e publish -deploy: - provider: pypi - user: __token__ - password: - secure: DkOVCB/fNUCjfeuS9sLhQ9bGeBAtpPxlFFB2fxgpYCCFtASk6cjQeCgDCdcntq5iAJAO2KamQS57LVO6sx6vI9YBBlBt0jLq7O+wWq8TU0jIt+4YXIQ0MDXQArCdBNuCq7ZMx23INXSPoIpiNsb8UaLTh5airukPDMWlUOX/1Y3i8jatvxWHmp0pjC+oXdD7QuzT1dDkuu/PlWXVtlbvlRaoSClDnw6ySkDuxzhsuXJ9XjcXCkYoyTA6HrZzAkJXOqOioTUtjS8XHu21VL12w3f3ABxHcFVAOH2qS47z9UzwgtX0aM2Qk0TG0nD6B3VL9WMhQgUC3gsE0rNC61w+ijL11c73MPon6kjsqBmNwq+QVcc6jIPDELP+eeaShLhx6khnNo7poGvl9HH3T/arhzFa5hB8je55gzlccmwjGUCBISDHVD59AwY15AQV92utnmRRU3e8Taw/hh5FOJE53Z5ux2Fd4N6mwEZt4MYh7+nnBckatKFjuzJ84YQACZK0u3lMeZaXIqrQLVVDZE3eR5WhuJvWHN87DJ6UPnmNxad0Fc90+N7SZgs38iFGwIkdFWKxgH1IDegW11NS3lJXngwe/3YJ24pMJu72R5X0p89F2ULoqORM1W73VzeOE6uGK0F2gVDEhAEQXhXvzho0kod8lPsjP5AnHEm7hSrK6xE= - distributions: sdist bdist_wheel - skip_existing: true - on: - repo: dbader/pytest-mypy - tags: true - python: '3.8' diff --git a/tox.ini b/tox.ini index c9ea697..f350900 100644 --- a/tox.ini +++ b/tox.ini @@ -87,8 +87,8 @@ testpaths = tests [testenv:publish] passenv = TWINE_* deps = - build ~= 0.4.0 - twine ~= 3.4.0 + build ~= 0.8.0 + twine ~= 4.0.0 commands = {envpython} -m build --outdir {distdir} . twine {posargs:check} {distdir}/*