Skip to content

Release v1.19 (legacy) #6

Release v1.19 (legacy)

Release v1.19 (legacy) #6

Workflow file for this run

# MIT License
#
# Copyright (c) 2022 sclorg team at Red Hat
#
# Upload a Python package when a release is created
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows
name: Publish Python 🐍 distributions 📦 to PyPI
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-n-publish:
runs-on: ubuntu-latest
permissions:
id-token: write # for trusted publishing
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
- name: Build a source tarball and a binary wheel
# https://pypa-build.readthedocs.io
run: |
python -m pip install -r requirements.txt
python setup.py sdist
- name: Publish 📦 to PyPI
# https://github.com/pypa/gh-action-pypi-publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true