From f660c0d1fd289e6e968e61909b2dd148fe2521d4 Mon Sep 17 00:00:00 2001 From: Tim Cosgrove Date: Tue, 3 Dec 2024 13:54:06 -0800 Subject: [PATCH] Disable sitemap generation. (#829) --- .github/workflows/content-release.yml | 92 +++++++++++++-------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/content-release.yml b/.github/workflows/content-release.yml index abc68a939..5ef375a76 100644 --- a/.github/workflows/content-release.yml +++ b/.github/workflows/content-release.yml @@ -207,52 +207,52 @@ jobs: ls -l fi - - name: Build sitemap - run: | - cd main && yarn build:sitemap - cd out - if [ -f sitemap.xml ]; then - echo "File found!" - cp sitemap.xml sitemap-nb.xml - else - touch sitemap-nb.xml - fi - shell: bash - - - name: setup bucket descriptor - id: bucket-descriptor - run: | - if [ "${{ inputs.build_type }}" == 'dev' ]; then - echo NEXT_SITEMAP_LOCATION="https://dev.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://dev.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'staging'] ; then - echo NEXT_SITEMAP_LOCATION="https://staging.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://staging.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'prod' ]; then - echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - else - echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - fi - shell: bash - - - name: Generate new sitemap - run: | - cd main - cd out - echo "${{steps.bucket-descriptor.outputs.OLD_SITEMAP_LOCATION}}" - cat <<'EOF' >> sitemap.xml - - - - ${{steps.bucket-descriptor.outputs.NEXT_SITEMAP_LOCATION}} - - - ${{steps.bucket-descriptor.outputs.OLD_SITEMAP_LOCATION}} - - - EOF + # - name: Build sitemap + # run: | + # cd main && yarn build:sitemap + # cd out + # if [ -f sitemap.xml ]; then + # echo "File found!" + # cp sitemap.xml sitemap-nb.xml + # else + # touch sitemap-nb.xml + # fi + # shell: bash + + # - name: setup bucket descriptor + # id: bucket-descriptor + # run: | + # if [ "${{ inputs.build_type }}" == 'dev' ]; then + # echo NEXT_SITEMAP_LOCATION="https://dev.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + # echo OLD_SITEMAP_LOCATION="https://dev.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + # elif [ "${{ inputs.build_type }}" == 'staging'] ; then + # echo NEXT_SITEMAP_LOCATION="https://staging.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + # echo OLD_SITEMAP_LOCATION="https://staging.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + # elif [ "${{ inputs.build_type }}" == 'prod' ]; then + # echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + # echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + # else + # echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + # echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + # fi + # shell: bash + + # - name: Generate new sitemap + # run: | + # cd main + # cd out + # echo "${{steps.bucket-descriptor.outputs.OLD_SITEMAP_LOCATION}}" + # cat <<'EOF' >> sitemap.xml + # + # + # + # ${{steps.bucket-descriptor.outputs.NEXT_SITEMAP_LOCATION}} + # + # + # ${{steps.bucket-descriptor.outputs.OLD_SITEMAP_LOCATION}} + # + # + # EOF - name: Configure AWS Credentials