Skip to content

bump fbpcp version 0.6.4 due to urllib3 version bump to 1.26.19 (#535) #60

bump fbpcp version 0.6.4 due to urllib3 version bump to 1.26.19 (#535)

bump fbpcp version 0.6.4 due to urllib3 version bump to 1.26.19 (#535) #60

name: Build and Publish Python Distributions to PyPI
on:
push:
branches: [ main ]
paths:
- 'setup.py'
jobs:
check-package-version:
name: Check Package Version
runs-on: ubuntu-latest
outputs:
version_check: ${{ steps.version_check.outputs.version_check }}
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install packages
run: >-
python3 -m
pip install
requests packaging
- name: Package version check
run: >-
python3 ./scripts/compare_package_version.py
- name: Get version check output
id: version_check
run: >-
echo "version_check=$(python3 ./scripts/compare_package_version.py | tail -1)" >> $GITHUB_OUTPUT
build-n-publish:
name: Build and publish distributions to PyPI
runs-on: ubuntu-latest
needs: check-package-version
if : needs.check-package-version.outputs.version_check == 'higher'
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python3 -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
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}