Skip to content

Commit 790e8f7

Browse files
committed
Update CI pipeline for correct publishing
1 parent e0b2c13 commit 790e8f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publish Python 🐍 distributions 📦 to PyPI
22

3+
# Publish to Test PyPI in case of pushing into the master
4+
# Publish to PyPI in case of releasing
5+
36
on:
47
push:
5-
branches: [ master ]
68

79
jobs:
810
build-n-publish:
@@ -22,6 +24,7 @@ jobs:
2224
run: |
2325
python -m build --sdist --wheel --outdir dist/ .
2426
- name: Publish distribution 📦 to Test PyPI
27+
if: github.ref == 'refs/heads/master'
2528
uses: pypa/gh-action-pypi-publish@master
2629
with:
2730
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = "0.0.1"
3+
VERSION = "0.0.2"
44

55
with open("README.md") as readme_file:
66
readme = readme_file.read()

0 commit comments

Comments
 (0)