Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Add PyPI release workflow.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 315446698
Change-Id: Ic2c33aca5a3b88d0c26c238c286a3aa5ad0e88c3
  • Loading branch information
aslanides authored and copybara-github committed Jun 9, 2020
1 parent 99da4df commit cff02a4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bsuite/opensource/github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pypi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install --upgrade pip setuptools twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*

0 comments on commit cff02a4

Please sign in to comment.