Skip to content

Added version 2.0.1 #32

Added version 2.0.1

Added version 2.0.1 #32

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- '*'
paths:
- 'src/**'
- 'setup.py'
- 'setup.cfg'
- 'requirements.txt'
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- config-file: "setup.cfg"
pypi-token: "PYPI_API_TOKEN_DEFAULT"
- config-file: "setup_browser.cfg"
pypi-token: "PYPI_API_TOKEN_BROWSER"
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel twine build
- name: Replace setup.cfg with the desired configuration
run: cp ${{ matrix.config-file }} setup.cfg
- name: Build the package
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets[matrix.pypi-token] }}
packages_dir: dist
skip_existing: true