Skip to content

Add ReadStatus function to get the sensor status. README improvments #5

Add ReadStatus function to get the sensor status. README improvments

Add ReadStatus function to get the sensor status. README improvments #5

Workflow file for this run

name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
jobs:
release-to-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel twine bumpversion
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
run: |
export RELEASE_VERSION=`git tag -l | tail -n 1`
sed -i "s/IN_PROGRESS/${RELEASE_VERSION}/g" st3215/__init__.py
sed -i "s/IN_PROGRESS/${RELEASE_VERSION}/g" setup.py
python3 setup.py release
twine upload dist/*