Skip to content

Commit 853154f

Browse files
added testpypi publishing pipeline
1 parent 352ee28 commit 853154f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Python Package to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- pypi-test
7+
8+
jobs:
9+
test-publish:
10+
runs-on: ubuntu-latest
11+
environment: pypi-test
12+
permissions:
13+
id-token: write # to authenticate as Trusted Publisher to pypi.org
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.x"
21+
cache: "pip"
22+
23+
- run: pip install build
24+
- run: python -m build
25+
26+
- name: Publish to TestPyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
repository-url: https://test.pypi.org/legacy/
30+

0 commit comments

Comments
 (0)