File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ name : publish-testpypi-manual
2+
3+ on :
4+ workflow_dispatch : {} # run manually from the Actions tab
5+
6+ permissions :
7+ contents : read
8+ id-token : write # required for PyPI/TestPyPI Trusted Publishers (OIDC)
9+
10+ jobs :
11+ testpypi :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
16+
17+ # build artifacts (wheel + sdist)
18+ - run : python -m pip install --upgrade build
19+ - run : python -m build
20+
21+ # publish to **TestPyPI** via Trusted Publishers (OIDC)
22+ - uses : pypa/gh-action-pypi-publish@release/v1
23+ with :
24+ repository-url : https://test.pypi.org/legacy/
25+ skip-existing : true
You can’t perform that action at this time.
0 commit comments