From c302357dc36544033aaa2867f815d2cd3fa79111 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 12 Jun 2024 15:57:37 -0700 Subject: [PATCH] Publish using gh-action-pypi-publish@release/v1 --- .github/workflows/publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1002969a..f9e90995 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,14 +54,12 @@ jobs: ${{ runner.os }}-publish-pip- - name: Install dependencies run: | - pip install setuptools wheel twine - - name: Publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + pip install setuptools wheel build + - name: Build run: | - python setup.py sdist bdist_wheel - twine upload dist/* + python -m build + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1 deploy_static_docs: runs-on: ubuntu-latest