Skip to content

Commit

Permalink
Script the release in the GitHub action
Browse files Browse the repository at this point in the history
This removes the use of our custom PyPI action for simplicity
  • Loading branch information
willbarton authored Sep 4, 2019
1 parent 5240b97 commit 2d08913
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
on: release
name: Publish
name: Publish to PyPI
on: [release]

jobs:
publishToPyPI:
name: Publish to PyPI
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to PyPI
uses: cfpb/pypi-publish-action@master
env:
LIVE_PYPI: "True"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel
- name: Build the package
run: |
python setup.py sdist bdist_wheel --universal
- name: Upload to PyPI
run: twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

0 comments on commit 2d08913

Please sign in to comment.