From 5376cbb0d044e20ae32005725452b1bfbd294a2d Mon Sep 17 00:00:00 2001 From: Claudio Satriano Date: Mon, 30 Sep 2024 18:11:03 +0200 Subject: [PATCH] Update PyPI publish action --- .github/workflows/github-deploy.yml | 31 +++++++++++++++++------------ CHANGELOG.md | 4 ++++ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index c91c314..91a59c8 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -35,19 +35,24 @@ jobs: - name: Check metadata run: pipx run twine check dist/* - publish: - needs: [dist] - runs-on: ubuntu-latest + publish-to-pypi: + name: >- + Publish to PyPI # upload to PyPI on every tag starting with 'v' if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') - # alternatively, to publish when a GitHub Release is created, use the following rule: - # if: github.event_name == 'release' && github.event.action == 'published' + needs: + - dist + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/nllgrid + permissions: + id-token: write steps: - - uses: actions/download-artifact@v4 - with: - name: artifact - path: dist - - uses: pypa/gh-action-pypi-publish@v1.4.2 - with: - user: claudiodsf - password: ${{ secrets.pypi_password }} \ No newline at end of file + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + name: artifact + path: dist + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 362388d..f051a02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ Python class for reading and writing (c) 2015-2024 Claudio Satriano, Natalia Poiata, Robert Pickle +## v1.5.1 - 2024-09-30 + +- Fix for PyPI publishing + ## v1.5 - 2024-09-30 - `NLLGrid.horizontal_recenter()` method to move the (x, y) origin of grid