Skip to content

Commit

Permalink
Added pypi deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
jernsting committed Jul 26, 2022
1 parent 407af32 commit e0662c1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python-deploy_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: nxt_gem release deployment on PyPI

on:
release:
types: [published]

jobs:
deploy:
name: Build and publish to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit e0662c1

Please sign in to comment.