Skip to content

Merge pull request #1 from matejgordon/feature/cicd-1 #1

Merge pull request #1 from matejgordon/feature/cicd-1

Merge pull request #1 from matejgordon/feature/cicd-1 #1

Workflow file for this run

name: Build and Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Upgrade pip and install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Upload package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*