File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 93
93
process_gcloudignore : false
94
94
parent : false
95
95
96
- - name : " Update latest"
96
+ - name : " Update latest index.html "
97
97
if : ${{ inputs.UPDATE_LATEST }}
98
98
run : |
99
99
cat <<EOF > index.html
@@ -117,6 +117,26 @@ jobs:
117
117
118
118
gsutil cp ./index.html gs://rerun-docs/docs/python/stable/
119
119
120
+ - name : " Update versions.json"
121
+ if : ${{ inputs.UPDATE_LATEST }}
122
+ run : |
123
+ VERSION=${{ inputs.PY_DOCS_VERSION_NAME }}
124
+
125
+ echo "download existing"
126
+ gsutil cp gs://rerun-docs/docs/python/versions.json ./
127
+ cat versions.json
128
+
129
+ echo "remove `stable` alias"
130
+ jq -c 'map(.aliases |= map(select(. != "stable")))' versions.json > versions.json.new
131
+ cat versions.json.new
132
+
133
+ echo "prepend new version with `stable` alias"
134
+ jq -c --arg v "$VERSION" '[{ version: $v, title: $v, aliases: ["stable"] }] + .' versions.json.new > versions.json
135
+ cat versions.json
136
+
137
+ echo "overwrite the file on gcs"
138
+ gsutil cp ./versions.json gs://rerun-docs/docs/python/
139
+
120
140
# ---------------------------------------------------------------------------
121
141
122
142
cpp-deploy-docs :
You can’t perform that action at this time.
0 commit comments