Skip to content

Merge pull request #10 from FomalhautWeisszwerg/feature/adapt_to_py312 #10

Merge pull request #10 from FomalhautWeisszwerg/feature/adapt_to_py312

Merge pull request #10 from FomalhautWeisszwerg/feature/adapt_to_py312 #10

Workflow file for this run

name: Deploy
on:
push:
tags:
- 'v*'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: '**/requirements-dev.txt'
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Deploy package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
skip_existing: true