aioesphomeapi/.github/workflows/release.yml

44 lines
1.0 KiB
YAML
Raw Normal View History

2020-07-14 19:43:19 +02:00
name: Publish Release
on:
release:
types: [published]
jobs:
2020-07-14 20:00:12 +02:00
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
2020-12-22 20:45:02 +01:00
- name: Set up Python environment
2020-07-14 20:00:12 +02:00
run: |
pip3 install -e .
pip3 install -r requirements_test.txt
- run: pylint aioesphomeapi
2020-07-14 19:43:19 +02:00
deploy-pypi:
name: Build and publish to PyPi
runs-on: ubuntu-latest
2020-07-14 20:00:12 +02:00
needs: [pylint]
2020-07-14 19:43:19 +02:00
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Set up python environment
run: |
pip3 install -e .
pip3 install setuptools wheel twine
- name: Build
run: python setup.py sdist bdist_wheel
- name: Upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
2020-07-14 19:43:19 +02:00
run: twine upload dist/*