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 🐍 distribution 📦 to TestPyPI
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ name : Build distribution 📦
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ persist-credentials : false
14+ - name : Set up Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.x"
18+ # Build the distribution packages
19+ - name : Install pypa/build
20+ run : >-
21+ python3 -m
22+ pip install
23+ build
24+ --user
25+ - name : Build a binary wheel and a source tarball
26+ run : python3 -m build
27+ - name : Store the distribution packages
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : python-package-distributions
31+ path : dist/
32+
33+ publish-to-testpypi :
34+ name : Publish Python 🐍 distribution 📦 to TestPyPI
35+ needs :
36+ - build
37+ runs-on : ubuntu-latest
38+
39+ environment :
40+ name : testpypi
41+ url : https://test.pypi.org/project/scipplan
42+
43+ permissions :
44+ id-token : write # IMPORTANT: mandatory for trusted publishing
45+
46+ steps :
47+ - name : Download all the dists
48+ uses : actions/download-artifact@v4
49+ with :
50+ name : python-package-distributions
51+ path : dist/
52+ - name : Publish distribution 📦 to TestPyPI
53+ uses : pypa/gh-action-pypi-publish@release/v1
54+ with :
55+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments