Skip to content

Commit 6dfbc52

Browse files
committed
Automatically publish on push
1 parent a1522b7 commit 6dfbc52

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
on: push
3+
4+
jobs:
5+
build-n-publish:
6+
name: Build and publish Python 🐍 distributions 📦 to PyPI
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
- name: Install dependencies
12+
run: |
13+
python -m pip install --upgrade pip
14+
pip install setuptools wheel twine
15+
- name: Build and publish
16+
env:
17+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
18+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
19+
run: |
20+
python setup.py sdist bdist_wheel
21+
twine upload dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="python-bufflog",
8-
version="0.0.1",
8+
version="0.0.2",
99
author="David Gasquez",
1010
author_email="[email protected]",
1111
description="Python logger for Buffer services",

0 commit comments

Comments
 (0)