From 4eeade00c3236c0cc871c5b66cfbb5b33b9281c5 Mon Sep 17 00:00:00 2001 From: David Wade Date: Wed, 27 Nov 2024 12:27:49 +0100 Subject: [PATCH] Update publish-to-pypi.yml further --- .github/workflows/publish-to-pypi.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index e1dacba..5e139b1 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -9,21 +9,26 @@ jobs: name: Build and publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: python-version: 3.11 + - name: Install dependencies run: >- python -m pip install . + - name: Install pypa/build run: >- python -m pip install build --user + - name: Build a binary wheel and a source tarball run: >- python -m @@ -32,7 +37,8 @@ jobs: --wheel --outdir dist/ . - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@v1 + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file