File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed
Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package to pypi.org
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ name : Build release artifacts
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v6
12+ with :
13+ persist-credentials : false
14+ - name : Set up Python
15+ uses : actions/setup-python@v6
16+ with :
17+ python-version : " 3.12"
18+ - name : Install pypa/build
19+ run : python3 -m pip install build --user
20+ - name : Build a binary wheel and a source tarball
21+ run : python3 -m build
22+ - name : Store the distribution packages
23+ uses : actions/upload-artifact@v5
24+ with :
25+ name : python-package-distributions
26+ path : dist/
27+
28+ publish-to-pypi :
29+ name : Publish release artifacts to PyPI
30+ if : startsWith(github.ref, 'refs/tags/')
31+ needs :
32+ - build
33+ runs-on : ubuntu-latest
34+ environment :
35+ name : pypi
36+ url : https://pypi.org/project/sphinx-run/
37+ permissions :
38+ id-token : write
39+ steps :
40+ - name : Download all the dists
41+ uses : actions/download-artifact@v6
42+ with :
43+ name : python-package-distributions
44+ path : dist/
45+ - name : Publish to pypi
46+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ requires = [
66]
77
88[project ]
9- name = " sphinxrun "
9+ name = " sphinx-run "
1010description = " Dynamically generated content for sphinx documentations"
1111readme = " README.md"
1212license = " BSD-2-Clause"
You can’t perform that action at this time.
0 commit comments