Skip to content

Commit

Permalink
Add github action to publish to PyPI (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored Feb 15, 2022
1 parent 0f0f3e0 commit b6356a0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish releases to PyPI

on:
release:
types: [published, prereleased]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.6
uses: actions/[email protected]
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish release to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit b6356a0

Please sign in to comment.