Skip to content

V1.2.0a1

V1.2.0a1 #17

# Refer to the following link for help
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: PyPI Distributions
concurrency: build_and_publish_to_pypi
on:
release:
types: [published]
jobs:
build-n-publish-pypi:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- 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
uses: pypa/gh-action-pypi-publish@release/v1.6
with:
print_hash: true
password: ${{ secrets.PYPI_API_TOKEN }}