Add Flit and change namer

This commit is contained in:
Andras Schmelczer 2022-07-05 10:45:51 +02:00
parent 50db7b8cb2
commit f188724d4b
13 changed files with 138 additions and 119 deletions

View file

@ -16,14 +16,11 @@ jobs:
with:
python-version: 3.9
- name: Install pypa/build
run: python -m pip install build --user
- name: Install Flit
run: pip install --upgrade flit --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish
run: flit publish --setup-py
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}