File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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/"
You can’t perform that action at this time.
0 commit comments