File tree Expand file tree Collapse file tree 2 files changed +30
-45
lines changed Expand file tree Collapse file tree 2 files changed +30
-45
lines changed Original file line number Diff line number Diff line change 66 push :
77 branches :
88 - master
9+ tags :
10+ - ' v*'
911
1012jobs :
1113
@@ -130,3 +132,31 @@ jobs:
130132 pybind11-stubgen "${{ matrix.test-package }}" -o flavour-2 --numpy-array-remove-parameters
131133 pybind11-stubgen "${{ matrix.test-package }}" -o flavour-3 --print-invalid-expressions-as-is
132134 pybind11-stubgen "${{ matrix.test-package }}" --dry-run
135+
136+ publish :
137+ name : Publish distribution
138+ needs : [format, tests, test-cli-options]
139+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
140+ runs-on : ubuntu-latest
141+
142+ steps :
143+ - uses : actions/checkout@v3
144+
145+ - name : Setup Python ${{ matrix.python }}
146+ uses : actions/setup-python@v2
147+ with :
148+ python-version : " 3.10"
149+
150+ - name : Build dist
151+ run : pipx run build --sdist --wheel
152+
153+ - uses : actions/upload-artifact@v2
154+ with :
155+ path : |
156+ dist/*.tar.gz
157+ dist/*.whl
158+
159+ 160+ with :
161+ user : __token__
162+ password : ${{ secrets.PYPI_API_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments