Skip to content

cfpb/pypi-publish-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyPI Publish GitHub Action

This is a GitHub Action that publishes a Python package to PyPI.

Usage

To use this action:

  1. Add an action that uses cfpb/pypi-publish-action@master to your workflow (most likely on a release workflow).
  2. Provide the PyPI username and password as TWINE_USERNAME and TWINE_PASSWORD secrets.
  3. Provide a LIVE_PYPI environment variable to publish to https://pypi.org/. If LIVE_PYPI is unset, the action will publish to http://test.pypi.org/.

For example:

GUI GitHub Workflow viewer

Or, in code:

workflow "Publish" {
  on = "release"
  resolves = ["Publish to PyPI"]
}

action "Publish to PyPI" {
  uses = "cfpb/pypi-publish-action@master"
  secrets = ["TWINE_USERNAME", "TWINE_PASSWORD"]
  env = {
    LIVE_PYPI = "True"
  }
}

About

GitHub Action to publish Python packages to PyPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published