Skip to content

How to deploy Gradio to Pypi using GitHub actions

Abubakar Abid edited this page Jun 16, 2022 · 2 revisions

We've set up a GitHub action to automate deploying to Pypi: https://github.com/gradio-app/gradio/blob/main/.github/workflows/deploy-pypi.yml

To trigger it, simply do the following:

  1. Create a new branch
  2. Update the version number in gradio/version.txt -- this will be the version number of the release and it can be something like 3.1.0 (or something like 3.1.0b1 for a pre-release)
  3. Merge your branch into main OR any other branch that begins with release*

That's it! You can view the logs here: https://github.com/gradio-app/gradio/actions/workflows/deploy-pypi.yml