Skip to content

Commit

Permalink
build: add action for publishing to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
mortonne authored Jun 17, 2021
1 parent 26bc506 commit c859cb1
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 distribution to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
name: Build and publish to PyPI
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c859cb1

Please sign in to comment.