Skip to content

hj_reachability 0.6.0 #11

hj_reachability 0.6.0

hj_reachability 0.6.0 #11

Workflow file for this run

name: pypi
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build setuptools
- name: Check consistency between the package version and release tag
run: |
PACKAGE_VER="v`python setup.py --version`"
if [ $PACKAGE_VER != ${{ github.event.release.tag_name }} ]
then
echo "Package version ($PACKAGE_VER) != release tag (${{ github.event.release.tag_name }})."; exit 1
fi
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}