Skip to content

Commit

Permalink
automate push to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Jul 9, 2021
1 parent ed44b0e commit 94e9bea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ jobs:
tags: bempp/cl-notebook:${{ steps.tag_name.outputs.SOURCE_TAG }}
target: lab

build-and-publish-pypi:
name: Build and publish to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build a binary wheel and a source tarball
run: |
pip install wheel
python setup.py bdist_wheel
python setup.py sdist --formats=gztar
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

tweet:
name: Tweet about latest version
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 94e9bea

Please sign in to comment.