Skip to content

Commit 4c50a94

Browse files
committed
test_pypi
1 parent ebd0d4d commit 4c50a94

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,39 @@ jobs:
105105
name: python-package-distributions
106106
path: dist/ugropy-${{ matrix.os }}-${{ matrix.python-version }}/
107107

108+
publish-to-testpypi:
109+
name: Publish Python 🐍 distribution 📦 to TestPyPI
110+
needs:
111+
- build
112+
runs-on: ubuntu-latest
113+
114+
environment:
115+
name: testpypi
116+
url: https://test.pypi.org/p/ugropy
117+
118+
permissions:
119+
id-token: write # IMPORTANT: mandatory for trusted publishing
120+
121+
steps:
122+
- name: Download all the dists
123+
uses: actions/download-artifact@v4
124+
with:
125+
name: python-package-distributions
126+
path: dist/
127+
pattern: ugropy-*
128+
merge-multiple: true
129+
- name: Publish distribution 📦 to TestPyPI
130+
uses: pypa/gh-action-pypi-publish@release/v1
131+
with:
132+
repository-url: https://test.pypi.org/legacy/
133+
skip-existing: true
134+
108135
publish_to_pypi:
109136
name: Publish Python 🐍 wheels 🛞 to PyPI
110137
if: github.event_name == 'release'
111138
needs:
112139
- build
140+
- publish-to-testpypi
113141
runs-on: ubuntu-latest
114142
environment:
115143
name: pypi

0 commit comments

Comments
 (0)