Skip to content

Commit

Permalink
Add PyPI upload
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Oct 18, 2023
1 parent 8ffa1f1 commit 871e3bd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Publish Python distribution to PyPI"
on: [push]

jobs:
build-and-publish:
name: "Publish Python distribution to PyPI"
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python
with:
python-version: 3.10

- name: "Build Python package"
run: |
python3 -m pip install --user --upgrade build
python3 -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 871e3bd

Please sign in to comment.