From 6b6edeb39107880e60d50603515d4a18be3db761 Mon Sep 17 00:00:00 2001 From: aan Date: Sun, 1 Sep 2024 17:45:01 +0200 Subject: [PATCH] Update GitHub Actions workflow for publishing to PyPI Simplify job name and upgrade action versions. Changed the job name to be more concise, updated actions/checkout from v2 to v4, and upgraded the pypa/gh-action-pypi-publish action from v1.5.0 to v1.9.0. This ensures compatibility with the latest features and bug fixes. --- .github/workflows/publish.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7cfaee7..3cfed0e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -6,13 +6,13 @@ on: jobs: build-n-publish: - name: Build and publish Python 🐍 distributions 📦 to PyPI + name: Build and publish to PyPI runs-on: ubuntu-latest permissions: id-token: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: pypi @@ -30,7 +30,4 @@ jobs: poetry build - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@v1.5.0 - with: - user: __token__ - password: ${{ secrets.pypi_password }} \ No newline at end of file + uses: pypa/gh-action-pypi-publish@v1.9.0 \ No newline at end of file