Skip to content

Commit

Permalink
enhancement #33: add CI to publish on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienDanieau committed Aug 19, 2024
1 parent 5df0fad commit 0118393
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Upload Python Package on Pypi.

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*

0 comments on commit 0118393

Please sign in to comment.