From a64fef61e14f9c4e5bfce8913bc6cf80c951f35c Mon Sep 17 00:00:00 2001 From: scaramallion Date: Fri, 2 May 2025 08:53:10 +1000 Subject: [PATCH] Really finalise this time --- .github/workflows/release-wheels.yml | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release-wheels.yml b/.github/workflows/release-wheels.yml index 3a389b9..c8c878d 100644 --- a/.github/workflows/release-wheels.yml +++ b/.github/workflows/release-wheels.yml @@ -3,9 +3,9 @@ name: release-deploy on: release: types: [ published ] - push: - branches: [ main ] - pull_request: + # push: + # branches: [ main ] + # pull_request: jobs: build-sdist: @@ -233,22 +233,22 @@ jobs: # The pypi upload fails with non-linux containers, so grab the uploaded # artifacts and run using those # See: https://github.com/pypa/gh-action-pypi-publish/discussions/15 - # deploy: - # name: Upload wheels to PyPI - # needs: [ test-package ] - # runs-on: ubuntu-latest - # environment: - # name: pypi - # url: https://pypi.org/project/pylibjpeg-rle/ - # permissions: - # id-token: write - # - # steps: - # - name: Download the wheels - # uses: actions/download-artifact@v4 - # with: - # path: dist/ - # merge-multiple: true - # - # - name: Publish package to PyPi - # uses: pypa/gh-action-pypi-publish@release/v1 + deploy: + name: Upload wheels to PyPI + needs: [ test-package ] + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/pylibjpeg-rle/ + permissions: + id-token: write + + steps: + - name: Download the wheels + uses: actions/download-artifact@v4 + with: + path: dist/ + merge-multiple: true + + - name: Publish package to PyPi + uses: pypa/gh-action-pypi-publish@release/v1