Skip to content

Do not duplicate existing dependency with different version #7

Do not duplicate existing dependency with different version

Do not duplicate existing dependency with different version #7

Workflow file for this run

name: Deploy to PyPI
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build-and-release:
name: Build and Release
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out code
uses: actions/checkout@v4
- name: Install build dependencies
run: pip install build twine
- name: Build package
run: python -m build .
- name: Twine Check
run: twine check dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*