66# ref: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
77
88jobs :
9- build :
9+ build-oeq :
1010 name : Build distribution
1111 runs-on : ubuntu-latest
1212 steps :
@@ -16,20 +16,21 @@ jobs:
1616 with :
1717 python-version : ' 3.10'
1818 - name : install dependencies, then build source tarball
19- run : |
19+ run : |
20+ cd openequivariance
2021 python3 -m pip install build --user
2122 python3 -m build --sdist
2223 - name : store the distribution packages
2324 uses : actions/upload-artifact@v4
2425 with :
2526 name : python-package-distributions
26- path : dist/
27+ path : openequivariance/ dist/
2728
2829 pypi-publish :
2930 name : Upload release to PyPI
3031 runs-on : ubuntu-latest
3132 # build task to be completed first
32- needs : build
33+ needs : build-oeq
3334 # Specifying a GitHub environment is optional, but strongly encouraged
3435 environment :
3536 name : pypi
4243 uses : actions/download-artifact@v4
4344 with :
4445 name : python-package-distributions
45- path : dist/
46+ path : openequivariance/dist/
47+ - name : publish package distributions to PyPI
48+ uses : pypa/gh-action-pypi-publish@release/v1
49+
50+ # ------------------------------------
51+
52+ build-oeq-extjax :
53+ name : Build distribution
54+ runs-on : ubuntu-latest
55+ steps :
56+ - uses : actions/checkout@v4
57+ - name : set up Python
58+ uses : actions/setup-python@v5
59+ with :
60+ python-version : ' 3.10'
61+ - name : install dependencies, then build source tarball
62+ run : |
63+ cd openequivariance_extjax
64+ python3 -m pip install build --user
65+ python3 -m build --sdist
66+ - name : store the distribution packages
67+ uses : actions/upload-artifact@v4
68+ with :
69+ name : python-package-distributions
70+ path : openequivariance_extjax/dist/
71+
72+ pypi-publish :
73+ name : Upload release to PyPI
74+ runs-on : ubuntu-latest
75+ # build task to be completed first
76+ needs : build-oeq-extjax
77+ # Specifying a GitHub environment is optional, but strongly encouraged
78+ environment :
79+ name : pypi
80+ url : https://pypi.org/p/openequivariance_extjax
81+ permissions :
82+ # IMPORTANT: this permission is mandatory for Trusted Publishing
83+ id-token : write
84+ steps :
85+ - name : download the distributions
86+ uses : actions/download-artifact@v4
87+ with :
88+ name : python-package-distributions
89+ path : openequivariance_extjax/dist/
4690 - name : publish package distributions to PyPI
4791 uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments