Skip to content

Merge pull request #38 from anexia-it/dependencyUpdates-pr #19

Merge pull request #38 from anexia-it/dependencyUpdates-pr

Merge pull request #38 from anexia-it/dependencyUpdates-pr #19

name: Publish to PyPI
on:
push:
branches:
- master
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment: Pypi
steps:
- uses: actions/checkout@v4
with:
# fetch with tags https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
# if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}