Skip to content

Commit 9e143ac

Browse files
author
spencer@primus
committed
Add publish to pypi
1 parent e2b4180 commit 9e143ac

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/publish_to_test_pypi.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,34 @@ jobs:
3333
- name: Build package
3434
shell: bash
3535
run: |
36-
poetry build
36+
poetry build
37+
38+
- name: Store the distribution packages
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: python-package-distributions
42+
path: dist/
43+
44+
# now we publish the release
45+
publish-to-testpypi:
46+
name: Publish Python distribution to TestPyPI
47+
needs: build
48+
runs-on: ubuntu-22.04
49+
50+
environment:
51+
name: testpypi
52+
url: https://test.pypi.org/p/avstack-core
53+
54+
permissions:
55+
id-token: write # IMPORTANT: mandatory for trusted publishing
56+
57+
steps:
58+
- name: Download all the dists
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: python-package-distributions
62+
path: dist/
63+
- name: Publish distribution 📦 to TestPyPI
64+
uses: pypa/gh-action-pypi-publish@release/v1
65+
with:
66+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)