Skip to content

Commit

Permalink
pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Mar 25, 2021
1 parent b6c6f4c commit 4eec525
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python distribution to PyPI
on:
release:
types:
- created

jobs:
build-n-publish:
name: Publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- 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:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 4eec525

Please sign in to comment.