From 83057d3ec7565c6818ece6a740f93045690c44a3 Mon Sep 17 00:00:00 2001 From: nfpappas-oddball Date: Wed, 2 Oct 2024 12:55:42 -0400 Subject: [PATCH] remove sitemap config --- .github/workflows/content-release.yml | 40 +-------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/content-release.yml b/.github/workflows/content-release.yml index 25ca30795..45fbdea2a 100644 --- a/.github/workflows/content-release.yml +++ b/.github/workflows/content-release.yml @@ -208,46 +208,8 @@ jobs: - name: Build sitemap run: | cd main && yarn build:sitemap - cd out - ls - cp sitemap.xml sitemap-nb.xml - - - name: setup bucket descriptor - id: bucket-descriptor - run: | - if [ "${{ inputs.build_type }}" == 'dev' ]; then - echo NEXT_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.dev.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/content.dev.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'staging'] ; then - echo NEXT_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.staging.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/content.staging.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'prod' ]; then - echo NEXT_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - else - echo NEXT_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://s3.us-gov-west-1.amazonaws.com/next-content.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 uses: aws-actions/configure-aws-credentials@v4.0.2 with: