From b472c0ace57b3443c21d9cd82a2ebfccd3df4f89 Mon Sep 17 00:00:00 2001 From: Adrian Price-Whelan Date: Sun, 24 Dec 2023 09:23:34 -0500 Subject: [PATCH] v1.8.1 to fix gh actions pypi upload --- .github/workflows/wheels.yml | 16 +++++++++------- CHANGES.rst | 6 ++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d39dcb61..24eed83f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -70,8 +70,8 @@ jobs: run: | sudo apt-get update sudo apt-get install gsl-bin libgsl0-dev - pip install pep517 - python -m pep517.build -s . + pip install build + python -m build -s . - uses: actions/upload-artifact@v3 with: @@ -81,14 +81,16 @@ jobs: needs: [build_nix_wheels, build_sdist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: + name: release + url: https://pypi.org/p/gala + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 with: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_password }} - # To test: repository_url: https://test.pypi.org/legacy/ \ No newline at end of file + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/CHANGES.rst b/CHANGES.rst index b3006e1a..4daf3be7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,6 +13,12 @@ API changes ----------- +1.8.1 (2023-12-24) +================== + +- New release to fix upload to PyPI from GitHub Actions. + + 1.8 (2023-12-23) ================