Skip to content

Update README.md

Update README.md #7

name: Publish Python Package
on:
push:
branches:
- main # Or any other branch you want to trigger the workflow
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9' # Specify the Python version
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools wheel twine build
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
twine upload dist/*