Skip to content

add venv to gitignore #23

add venv to gitignore

add venv to gitignore #23

Workflow file for this run

name: build-pypi
on:
workflow_dispatch:
push:
branches: [ main ]
tags: [ "*" ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build
run: |
python -m build
- name: Deploy
if: startsWith(github.ref, 'refs/tags/v')
run: |
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PyPiToken }}