name: Manual PyPI Publish on: workflow_dispatch: jobs: build-and-publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.11' - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Create virtual environment run: uv venv - name: Install Poetry and dependencies run: | uv pip install poetry ".[torch,flax]" - name: Build and Publish to PyPI run: | poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} poetry publish --build