From 0e40a80c84910189b5b6e605ca441c6d35183da6 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 25 Feb 2024 11:38:22 -0800 Subject: [PATCH] Deploy future packages with PyPI trusted actions --- .github/workflows/publish.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dd58c96..c56f512 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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