Skip to content

Commit 0d72849

Browse files
committed
Update workflow to include PyPI
1 parent 5e400a5 commit 0d72849

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: 🔨 Build and 📦 publish distribution to TestPyPI
1+
name: CI/CD pipeline
22
on: push
33

44
jobs:
55
build-n-publish:
6-
name: 🔨 Build and 📦 publish distribution to TestPyPI
6+
name: 🔨 Build and 📦 publish distribution to TestPyPI & PyPI
77
runs-on: ubuntu-18.04
88
steps:
99
- uses: actions/checkout@master
10-
- name: Set up Python 3.7
10+
- name: 🏗 Set up Python 3.7
1111
uses: actions/setup-python@v1
1212
with:
1313
python-version: 3.7
14-
- name: Install build dependencies
14+
- name: 🏗 Install build dependencies
1515
run: >-
1616
python -m pip install wheel --user
1717
- name: 🔨 Build a binary wheel and a source tarball
@@ -22,3 +22,8 @@ jobs:
2222
with:
2323
password: ${{ secrets.testpypi_password }}
2424
repository_url: https://test.pypi.org/legacy/
25+
- name: 📦 Publish tagged releases to PyPI
26+
if: startsWith(github.event.ref, "refs/tags")
27+
uses: pypa/gh-action-pypi-publish@master
28+
with:
29+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)