Skip to content

Commit

Permalink
Create pypi_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum authored May 1, 2020
1 parent cb80826 commit 624be01
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Python distributions to PyPI

on:
push:
tags:
- "v*"

jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install .
- name: Build a binary wheel and a source tarball
run: |
python setup.py bdist_wheel
python setup.py sdist
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 624be01

Please sign in to comment.