diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e663a47 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy to PyPI + +on: + workflow_dispatch: + +jobs: + deploy: + name: Publish to PyPI + runs-on: ubuntu-latest + environment: pypi + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Download wheels from latest GitHub Release + run: | + mkdir -p dist + gh release download --pattern '*.whl' --dir dist + echo "Downloaded wheels:" + ls -la dist/ + env: + GH_TOKEN: ${{ github.token }} + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: ./dist/