Skip to content

Commit fae436c

Browse files
committed
Add TestPyPI trusted publishing workflow
1 parent 638d76c commit fae436c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish-testpypi:
11+
name: Publish to TestPyPI
12+
runs-on: ubuntu-latest
13+
environment: testpypi
14+
permissions:
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
- run: pip install build
22+
- run: python -m build
23+
- uses: pypa/gh-action-pypi-publish@release/v1
24+
with:
25+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)