From 04ac2b189b0df71ab71256c9d1f1eea3ee148639 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 25 Jul 2024 13:37:44 +0200 Subject: [PATCH] Fix publish action --- .github/workflows/publish_pypi.yml | 47 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index f973683..93f1a13 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -8,26 +8,27 @@ on: types: - published -upload_pypi: - needs: [build_wheels, build_sdist] - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/cymem - permissions: - id-token: write - contents: read - if: github.event_name == 'release' && github.event.action == 'published' - # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - steps: - - uses: robinraju/release-downloader@v1 - with: - tag: {{ github.event.release.tag_name }} - fileName: '*' - out-file-path: 'dist' - # unpacks all CIBW artifacts into dist/ - pattern: cibw-* - path: dist - merge-multiple: true - #- uses: pypa/gh-action-pypi-publish@release/v1 +jobs: + upload_pypi: + needs: [build_wheels, build_sdist] + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/cymem + permissions: + id-token: write + contents: read + if: github.event_name == 'release' && github.event.action == 'published' + # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + steps: + - uses: robinraju/release-downloader@v1 + with: + tag: {{ github.event.release.tag_name }} + fileName: '*' + out-file-path: 'dist' + # unpacks all CIBW artifacts into dist/ + pattern: cibw-* + path: dist + merge-multiple: true + #- uses: pypa/gh-action-pypi-publish@release/v1