Deploy future packages with PyPI trusted actions

This commit is contained in:
Simon Willison 2024-02-25 11:38:22 -08:00
commit 0e40a80c84

View file

@ -40,11 +40,9 @@ jobs:
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install setuptools wheel twine build
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
pip install setuptools wheel build
- name: Build
run: |
python -m build
twine upload dist/*
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1