diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..d0d5baf --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,27 @@ +name: ellipticbn + +on: + release: + types: [ published ] + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/ellipticbn + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up python + uses: actions/setup-python@v5 + - name: Install dependencies + run: | + pip install setuptools wheel build + - name : Build + run: | + python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1