diff --git a/.github/workflows/test_pypi.yml b/.github/workflows/test_pypi.yml index 3c4e46d..3ae86f9 100644 --- a/.github/workflows/test_pypi.yml +++ b/.github/workflows/test_pypi.yml @@ -33,19 +33,21 @@ jobs: publish_test_pypi: runs-on: ubuntu-latest needs: [sdist] + environment: + name: testpypi + url: https://test.pypi.org/p/simular-evm + permissions: + id-token: write steps: - - name: Download dists - uses: actions/download-artifact@v4 - with: - pattern: wheels-* - merge-multiple: true - path: dist/ - - name: Publish to PyPI - uses: messense/maturin-action@v1 - env: - MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_TEST_PYPI_TOKEN }} - with: - command: upload - args: --skip-existing * + - name: Download dists + uses: actions/download-artifact@v4 + with: + pattern: wheels-* + merge-multiple: true + path: dist/ + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@v1.8.14 + with: + repository-url: https://test.pypi.org/legacy/