File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ on : [push]
2+
3+ jobs :
4+ build-n-publish :
5+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
6+ runs-on : ubuntu-latest
7+
8+ steps :
9+ - uses : actions/checkout@master
10+ - name : Set up Python 3.8
11+ uses : actions/setup-python@v2
12+ with :
13+ python-version : 3.8
14+
15+ - name : Install pypa/build
16+ run : python -m pip install build --user
17+ - name : Build a binary wheel and a source tarball
18+ run : python -m build --sdist --wheel --outdir dist/ .
19+
20+ - name : Publish distribution 📦 to Test PyPI
21+ uses : pypa/gh-action-pypi-publish@master
22+ with :
23+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
24+ repository_url : https://test.pypi.org/legacy/
25+ # - name: Publish distribution 📦 to PyPI
26+ # if: startsWith(github.ref, 'refs/tags')
27+ # uses: pypa/gh-action-pypi-publish@master
28+ # with:
29+ # password: ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments