diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b08a0d0..33936fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,9 @@ jobs: platform: windows os: windows-latest runs-on: ${{ matrix.os }} + permissions: + # For pypi trusted publishing + id-token: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -62,12 +65,17 @@ jobs: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show # CIBW_BUILD_VERBOSITY: 1 - - name: upload - run: | - twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/* + # - name: upload + # run: | + # twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/* # cargo build --release --target ${{ matrix.target }} # python3 -m build --wheel # maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing + - name: Publish to PyPi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip-existing: true + verbose: true upload-assets: needs: create-release strategy: