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 : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ build-n-publish :
9+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
10+ runs-on : ubuntu-18.04
11+ steps :
12+ - uses : actions/checkout@master
13+ - name : Set up Python 3.7
14+ uses : actions/setup-python@v1
15+ with :
16+ python-version : 3.7
17+ - name : Install pep517
18+ run : >-
19+ python -m
20+ pip install
21+ pep517
22+ --user
23+ - name : Build a binary wheel and a source tarball
24+ run : >-
25+ python -m
26+ pep517.build
27+ --source
28+ --binary
29+ --out-dir dist/
30+ .
31+ - name : Publish distribution 📦 to Test PyPI
32+ uses : pypa/gh-action-pypi-publish@master
33+ with :
34+ password : ${{ secrets.test_pypi_password }}
35+ repository_url : https://test.pypi.org/legacy/
36+ - name : Publish distribution 📦 to PyPI
37+ if : startsWith(github.ref, 'refs/tags')
38+ uses : pypa/gh-action-pypi-publish@master
39+ with :
40+ password : ${{ secrets.pypi_password }}
41+ # verbose: true
42+ # skip_existing: true
You can’t perform that action at this time.
0 commit comments