Skip to content

Commit

Permalink
Publish to PyPI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Dec 28, 2021
1 parent 1b51d93 commit 5d93be6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pypi-publish
on:
push:
branches: [ master ]
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
pip install -e .
- name: Build package
run: |
pip install --upgrade build
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 5d93be6

Please sign in to comment.