Skip to content

Rename workflows

Rename workflows #1

Workflow file for this run

name: Deploy PYPI Project CI
on:
push:
tags:
- 'v*' # Triggers on version tags
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build package
run: |
cd src
python -m build .
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} # Use your PyPI username
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} # Store your token in GitHub secrets
run: |
printf "Deploying PYPI project"
twine upload dist/*