diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 48eec8f..fcca9a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -164,38 +164,38 @@ jobs: verbose: true skip-existing: true - # ───────────────────────────────────────────────────────────── - # Job 4: upload wheel to PyPI - # run when push to tag(v*.*.*) - # requires publish-pypi-test to succeed first - # ───────────────────────────────────────────────────────────── - publish-pypi: - name: Publish to PyPI - runs-on: ubuntu-22.04 - needs: publish-pypi-test - if: startsWith(github.ref, 'refs/tags/v') - - environment: - name: pypi - url: https://pypi.org/project/simm/ - - permissions: - id-token: write - - steps: - - name: Download wheel artifact - uses: actions/download-artifact@v4 - with: - name: simm-wheel-py${{ env.PYTHON_VERSION }} - path: python/dist/ - - - name: List wheel files - run: ls -lh python/dist/ - - - name: Upload to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_TOKEN }} - packages-dir: python/dist/ - verbose: true - skip-existing: true + # ───────────────────────────────────────────────────────────── + # Job 4: upload wheel to PyPI + # run when push to tag(v*.*.*) + # requires publish-pypi-test to succeed first + # ───────────────────────────────────────────────────────────── + publish-pypi: + name: Publish to PyPI + runs-on: ubuntu-22.04 + needs: publish-pypi-test + if: startsWith(github.ref, 'refs/tags/v') + + environment: + name: pypi + url: https://pypi.org/project/simm/ + + permissions: + id-token: write + + steps: + - name: Download wheel artifact + uses: actions/download-artifact@v4 + with: + name: simm-wheel-py${{ env.PYTHON_VERSION }} + path: python/dist/ + + - name: List wheel files + run: ls -lh python/dist/ + + - name: Upload to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_TOKEN }} + packages-dir: python/dist/ + verbose: true + skip-existing: true