From 9186d0ffeffb9994d7dfdb698378a57b15954606 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Mon, 18 Sep 2023 15:08:58 +0200 Subject: [PATCH] maint: update pypi publish action version --- .github/workflows/publish.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8164f947..2dc30988 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,5 +1,8 @@ name: Publish Python distributions to PyPI +# The idea here is that you would make a Release via the web interface on github, +# and this automatically then publishes to pypi + on: push: tags: @@ -9,9 +12,6 @@ jobs: build-n-publish: name: Build and publish to PyPI runs-on: ubuntu-latest - env: - ENV_NAME: publish - PYTHON: 3.8 steps: - uses: actions/checkout@main with: @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: ${{ env.PYTHON }} + python-version: "3.11" - name: Install build run: pip install build @@ -31,7 +31,7 @@ jobs: - name: Publish to PyPI if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@v1.8.8 with: user: __token__ password: ${{ secrets.pypi_password }}