Skip to content

Commit 96c65d2

Browse files
committed
chore(ci): manual test workflow
1 parent 91736c6 commit 96c65d2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)