File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Manually Publish Python 🐍 distribution 📦 to PyPI"
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ # Disabling shallow clone is recommended for improving relevancy of reporting
15+ fetch-depth : 0
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.9'
20+ - name : Install pypa/build
21+ run : |
22+ python3 -m pip install build --user
23+ - name : Build a binary wheel and a source tarball
24+ run : |
25+ cd howlongtobeatpy
26+ python3 -m build
27+ - name : Store the distribution packages
28+ uses : actions/upload-artifact@v3
29+ with :
30+ name : python-package-distributions
31+ path : dist/
32+ publish-to-pypi :
33+ name : >-
34+ Publish Python 🐍 distribution 📦 to PyPI
35+ needs :
36+ - build
37+ runs-on : ubuntu-latest
38+ environment :
39+ name : pypi
40+ url : https://pypi.org/p/howlongtobeatpy
41+ permissions :
42+ id-token : write # IMPORTANT: mandatory for trusted publishing
43+ steps :
44+ - name : Enter the correct folder
45+ run : |
46+ cd howlongtobeatpy
47+ - name : Download all the dists
48+ uses : actions/download-artifact@v3
49+ with :
50+ name : python-package-distributions
51+ path : dist/
52+ - name : Publish distribution 📦 to PyPI
53+ uses : pypa/gh-action-pypi-publish@release/v1
54+
You can’t perform that action at this time.
0 commit comments