Skip to content

Commit 2c73125

Browse files
authored
Merge pull request #353 from ma10/debug-release-wf-20250609_5
Adjust for release asset build.
2 parents 3b91d60 + 606041b commit 2c73125

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/reusable-build-doc.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@ jobs:
211211
EXTRA_SPHINX_OPTIONS="-t current"
212212
fi
213213
214-
GTM_OPTIONS=""
215-
if [ $IS_RELEASE_ASSET == "true" ]; then
216-
BASE_URL=""
217-
NO_SPHINX_OPTIONS="true"
218-
fi
219-
220214
# Create the build output directory
221215
BUILD_OUTPUT_DIR="${GITHUB_WORKSPACE}/build_output"
222216
mkdir -p "${BUILD_OUTPUT_DIR}/all"
@@ -228,7 +222,7 @@ jobs:
228222
229223
SPHINX_OPTIONS=""
230224
if [ "${BUILD_PROCEDURE}" -eq 0 ]; then
231-
if [ ! "$NO_SPHINX_OPTIONS" ]; then
225+
if [ "$IS_RELEASE_ASSET" != "true" ]; then
232226
SPHINX_OPTIONS="-A gtm_id=${GTM_ID} -D html_baseurl=${BASE_URL} ${EXTRA_SPHINX_OPTIONS}"
233227
fi
234228
make sphinx_options="$SPHINX_OPTIONS" clean html singlehtml
@@ -238,8 +232,10 @@ jobs:
238232
cp -r ./data/json/schemas "${BUILD_OUTPUT_DIR}/"
239233
fi
240234
elif [ "${BUILD_PROCEDURE}" -eq 1 ]; then
241-
if [ ! "$NO_SPHINX_OPTIONS" ]; then
235+
if [ "$IS_RELEASE_ASSET" != "true" ]; then
242236
SPHINX_OPTIONS="-A gtm_id=${GTM_ID} ${EXTRA_SPHINX_OPTIONS}"
237+
else
238+
BASE_URL=""
243239
fi
244240
make BASE_URL=${BASE_URL} sphinx_options="$SPHINX_OPTIONS" clean html singlehtml
245241
cp -r ./ja/build/html/* "${BUILD_OUTPUT_DIR}/"

.github/workflows/reusable-get-build-targets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
--arg base_url "$LATEST_BASE_URL" \
134134
--arg artifact_name "$LATEST_ARTIFACT_NAME" \
135135
'. + [{tag: $tag, python: $python, sphinx: $sphinx, theme: $theme, deploy_path: $deploy_path, base_url: $base_url, artifact_name: $artifact_name, is_latest_release: true, vnum: ($vnum | tonumber)}]')
136-
RELEASE_ASSET_ARTIFACT_NAME="release-${LATEST_TAG}"
136+
RELEASE_ASSET_ARTIFACT_NAME="release-${LATEST_RELEASE_TAG}"
137137
MATRIX_ITEMS=$(echo "$MATRIX_ITEMS" | jq -c --arg tag "$LATEST_RELEASE_TAG" \
138138
--arg python "$LATEST_PY" \
139139
--arg sphinx "$LATEST_SPHINX" \

0 commit comments

Comments
 (0)