@@ -174,6 +174,21 @@ jobs:
174
174
with :
175
175
project_id : ${{ secrets.GCS_PROJECT }}
176
176
177
+ # Uploading docs as archive to GCS, so they can be as backup
178
+ - name : Upload docs as archive to GCS 🪣
179
+ if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
180
+ working-directory : docs/build
181
+ run : |
182
+ zip ${{ env.VERSION }}.zip -r html/
183
+ gsutil cp ${{ env.VERSION }}.zip ${GCP_TARGET}
184
+
185
+ - name : Inject version selector
186
+ working-directory : docs/build
187
+ run : |
188
+ pip install -q wget
189
+ python -m wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/inject-selector-script.py
190
+ python inject-selector-script.py html ${{ matrix.pkg-name }}
191
+
177
192
# Uploading docs to GCS, so they can be served on lightning.ai
178
193
- name : Upload docs/${{ matrix.pkg-name }}/stable to GCS 🪣
179
194
if : startsWith(github.ref, 'refs/heads/release/') && github.event_name == 'push'
@@ -188,11 +203,3 @@ jobs:
188
203
- name : Upload docs/${{ matrix.pkg-name }}/release to GCS 🪣
189
204
if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
190
205
run : gsutil -m rsync -d -R docs/build/html/ ${GCP_TARGET}/${{ env.VERSION }}
191
-
192
- # Uploading docs as archive to GCS, so they can be as backup
193
- - name : Upload docs as archive to GCS 🪣
194
- if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
195
- working-directory : docs/build
196
- run : |
197
- zip ${{ env.VERSION }}.zip -r html/
198
- gsutil cp ${{ env.VERSION }}.zip ${GCP_TARGET}
0 commit comments