Skip to content

Commit

Permalink
Update CI pipeline for correct publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SpirinEgor committed Mar 1, 2021
1 parent e0b2c13 commit 790e8f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish Python 🐍 distributions 📦 to PyPI

# Publish to Test PyPI in case of pushing into the master
# Publish to PyPI in case of releasing

on:
push:
branches: [ master ]

jobs:
build-n-publish:
Expand All @@ -22,6 +24,7 @@ jobs:
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to Test PyPI
if: github.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = "0.0.1"
VERSION = "0.0.2"

with open("README.md") as readme_file:
readme = readme_file.read()
Expand Down

0 comments on commit 790e8f7

Please sign in to comment.