Skip to content

Commit 59a1171

Browse files
Merge pull request #177 from UpCloudLtd/chore/trusted-publisher-test
chore: add workflow to test trusted publisher
2 parents 1d5f780 + c8eba44 commit 59a1171

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
15+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
16+
# build artifacts (wheel + sdist)
17+
- run: python -m pip install --upgrade build
18+
- run: python -m build
19+
# publish to **TestPyPI** via Trusted Publishers (OIDC)
20+
- uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
repository-url: https://test.pypi.org/legacy/
23+
skip-existing: true

0 commit comments

Comments
 (0)