Skip to content

Commit 3280ae8

Browse files
committed
fixup! build: move latest doc into /latest dir
1 parent 6285991 commit 3280ae8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ jobs:
120120
121121
DEPLOY_LATEST="false"
122122
123-
if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; then
124-
# if [[ "a" == "a" ]]; then
123+
# if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; then
124+
if [[ "a" == "a" ]]; then
125125
DEPLOY_LATEST="true"
126126
if [[ -n "$LATEST_VERSION" && "$LATEST_VERSION" != "$MAJOR_VERSION" ]]; then
127127
aws s3 sync --quiet --no-progress --delete \
@@ -176,11 +176,6 @@ jobs:
176176
# Update canonical URLs to point to versioned URLs instead of root
177177
# This ensures search engines index the correct versioned documentation (only one version)
178178
MAJOR_VERSION="${{ steps.prepare.outputs.major_version }}"
179-
VERSION_URL="${SITE_URL}${MAJOR_VERSION}/"
180-
181-
find "pages" -name "*.html" -type f -exec sed -i \
182-
-e "s|<link rel=\"canonical\" href=\"https://element.siemens.io/|<link rel=\"canonical\" href=\"${VERSION_URL}|g" \
183-
{} \;
184179
185180
if [[ "${{ steps.prepare.outputs.deploy_latest }}" == "true" ]]; then
186181
aws s3 sync --quiet --no-progress --delete "pages/" "s3://${{ env.VERSIONED_BUCKET_NAME }}/latest/"

0 commit comments

Comments
 (0)