Skip to content

Commit 34d2ccb

Browse files
committed
[WIP] Test publish to TestPyPI
1 parent 52c5c7c commit 34d2ccb

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/publish-test-pypi.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
1919
with:
2020
python-version: "3.x"
2121
- name: Install pypa/build
22-
run: >-
23-
python3 -m
24-
pip install
25-
build
26-
--user
22+
run: python3 -m pip install build --user
2723
- name: Build a binary wheel and a source tarball
2824
run: python3 -m build
2925
- name: Store the distribution packages
@@ -34,24 +30,17 @@ jobs:
3430

3531
publish-to-testpypi:
3632
name: Publish to TestPyPI
37-
needs:
38-
- build
33+
needs: build
3934
runs-on: ubuntu-latest
4035

41-
environment:
42-
name: testpypi
43-
url: https://test.pypi.org/p/ltbams
44-
45-
permissions:
46-
id-token: write # IMPORTANT: mandatory for trusted publishing
47-
4836
steps:
4937
- name: Download all the dists
5038
uses: actions/download-artifact@v4
5139
with:
5240
name: python-package-distributions
5341
path: dist/
54-
- name: Publish distribution 📦 to TestPyPI
42+
- name: Publish to TestPyPI
5543
uses: pypa/gh-action-pypi-publish@release/v1
5644
with:
5745
repository-url: https://test.pypi.org/legacy/
46+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)