Skip to content

Commit

Permalink
🔧 Automate release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jerr0328 committed Oct 18, 2020
1 parent b454f74 commit 0a8030d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Upload Python Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ black
flake8
isort
pre-commit
setuptools
twine
wheel
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="co2mini",
version="0.1.1",
version="0.2.0",
author="Jeremy Mayeres",
author_email="[email protected]",
description="Monitor CO2 levels with Prometheus and/or HomeKit",
Expand Down

0 comments on commit 0a8030d

Please sign in to comment.