Skip to content

v0.1.2

v0.1.2 #12

Workflow file for this run

name: Install, deploy to PyPI
on:
push:
tags: "v*.*.*"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: pip
- name: Install bmdf
run: pip install -e .
- name: Verify README TOC is up to date
run: |
mktoc -i README.md
if git diff --exit-code; then
echo "README TOC is up to date."
else
echo "README TOC is out of date."
exit 1
fi
- name: Verify README examples are up to date
run: |
mdcmd -i README.md
if git diff --exit-code; then
echo "README examples are up to date."
else
echo "README examples are out of date."
exit 1
fi
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install build twine
python -m build
twine upload dist/*