diff --git a/.github/workflows/upload-pypi.yml b/.github/workflows/deploy-pypi.yml similarity index 100% rename from .github/workflows/upload-pypi.yml rename to .github/workflows/deploy-pypi.yml diff --git a/.github/workflows/upload-wheels-pypi.yml b/.github/workflows/upload-wheels-pypi.yml new file mode 100644 index 0000000..2e0edac --- /dev/null +++ b/.github/workflows/upload-wheels-pypi.yml @@ -0,0 +1,23 @@ +name: Upload wheels PyPI +run-name: Upload platform wheels to PyPI +on: + workflow_call: + +jobs: + Upload-Wheels: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/scatfit + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + + steps: + - name: Download wheel artifacts + uses: actions/download-artifact@v3 + with: + name: wheels + path: ./dist/ + - name: Upload wheels to PyPI + uses: pypa/gh-action-pypi-publish@release/v1