Skip to content

Commit

Permalink
Merge pull request #19 from oduwsdl/gh-action-dist
Browse files Browse the repository at this point in the history
Automate package publishing to PyPI
  • Loading branch information
naumansiddiqui4 committed Aug 11, 2020
2 parents 683a951 + 6cd932b commit e918af7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to PyPI

on:
push:
tags:
- '*'

jobs:
build-n-publish:
name: Build and Publish Package
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Upgrade setuptools and wheel
run: python -m pip install --user --upgrade setuptools wheel
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit e918af7

Please sign in to comment.