File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : Publish
4+
5+ on : push # yamllint disable-line rule:truthy
6+
7+ jobs :
8+ build :
9+ name : Build distribution package
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ persist-credentials : false
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.x"
20+ - name : Install pypa/build
21+ run : python -m pip install --user build
22+ - name : Build a binary wheel and a source tarball
23+ run : python -m build
24+ - name : Store the distribution packages
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : python-package-distributions
28+ path : dist/
29+
30+ publish-to-testpypi :
31+ name : Publish distribution package to TestPyPI
32+ needs : build
33+ runs-on : ubuntu-latest
34+ environment :
35+ name : testpypi
36+ url : https://test.pypi.org/p/yamllint
37+ permissions :
38+ id-token : write
39+ steps :
40+ - name : Download all the dists
41+ uses : actions/download-artifact@v4
42+ with :
43+ name : python-package-distributions
44+ path : dist/
45+ - name : Publish distribution package
46+ uses : pypa/gh-action-pypi-publish@release/v1
47+ with :
48+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments