Skip to content

Commit

Permalink
Migrate PyPI release to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Nov 5, 2020
1 parent 0c36187 commit a31a6a2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to PyPI

on: push

jobs:
publish-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Build source distributions and wheels
run: python setup.py bdist_wheel

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit a31a6a2

Please sign in to comment.