File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : 🔨 Build and 📦 publish distribution to TestPyPI
1+ name : CI/CD pipeline
22on : push
33
44jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments