Skip to content

Minimum versions stepped #42

Minimum versions stepped

Minimum versions stepped #42

name: PyPI Publish
on:
push:
branches-ignore:
- 'develop'
- 'feature/*'
tags:
- '**'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
# Setup Python
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
# Install Dependencies
- name: Install pypa/build
run: >-
python -m
pip install
build wheel
--user
# Build Package
- name: Build a binary wheel and a source tarball
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: >-
python
setup.py
bdist_wheel
sdist
# Publish
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_DJANGO_MINIO_BACKEND }}