name: publish python sdk on: workflow_dispatch: # Allows manual trigger of the workflow inputs: custom_version: # Optional input for a custom version description: 'Custom version to publish (e.g., v1.2.3) -- only edit if you know what you are doing' required: false type: string token: description: 'Personal Access Token' required: true default: "" type: string workflow_call: # Allows trigger of the workflow from another workflow inputs: custom_version: # Optional input for a custom version description: 'Custom version to publish (e.g., v1.2.3) -- only edit if you know what you are doing' required: false type: string token: description: 'Personal Access Token' required: true default: "" type: string jobs: build-wheels: uses: ./.github/workflows/build_wheels.yml secrets: inherit with: custom_version: ${{ github.event.inputs.custom_version }} token: ${{ github.event.inputs.token }} publish-python-sdk: if: github.repository == 'feast-dev/feast' runs-on: ubuntu-latest needs: [ build-wheels ] steps: - uses: actions/download-artifact@v4.1.7 with: name: python-wheels path: dist - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ password: ${{ secrets.PYPI_PASSWORD }}