Add Flit and change namer
This commit is contained in:
parent
50db7b8cb2
commit
f188724d4b
13 changed files with 138 additions and 119 deletions
17
.github/workflows/publish.yaml
vendored
17
.github/workflows/publish.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue