11name : Development Release
22
3- # Manual trigger only - creates GitHub release with artifacts (no PyPI)
3+ # Manual trigger only - creates GitHub release with artifacts and publishes to PyPI
44on :
55 workflow_dispatch :
66 inputs :
@@ -128,6 +128,13 @@ jobs:
128128 git push origin HEAD:${{ github.ref_name }}
129129 git push origin ${{ env.NEW_TAG }}
130130
131+ - name : Publish to PyPI
132+ if : github.repository_owner == 'GRIDAPPSD'
133+ env :
134+ TWINE_USERNAME : __token__
135+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
136+ run : pixi run publish
137+
131138 - name : Create GitHub Release
132139 uses : ncipollo/release-action@v1.15.0
133140 with :
@@ -140,18 +147,18 @@ jobs:
140147 body : |
141148 ## Development Release
142149
143- This is a development/pre-release version. It is **not published to PyPI** .
150+ This is a development/pre-release version published to PyPI.
144151
145152 ### Installation
146153
147- **Via pip (from GitHub release ):**
154+ **Via pip (from PyPI ):**
148155 ```bash
149- pip install https://github.com/GRIDAPPSD/ gridappsd-python/releases/download/ ${{ env.NEW_TAG }}/gridappsd_python-${{ env. NEW_VERSION }}-py3-none-any.whl
156+ pip install gridappsd-python== ${{ env.NEW_VERSION }}
150157 ```
151158
152- **Via pip (from git tag ):**
159+ **Via pip (from GitHub release ):**
153160 ```bash
154- pip install git+ https://github.com/GRIDAPPSD/gridappsd-python.git@ ${{ env.NEW_TAG }}#subdirectory=gridappsd-python-lib
161+ pip install https://github.com/GRIDAPPSD/gridappsd-python/releases/download/ ${{ env.NEW_TAG }}/gridappsd_python-${{ env.NEW_VERSION }}-py3-none-any.whl
155162 ```
156163
157164 **Via Docker:**
0 commit comments