From f34af654260d431853ab1c5e812abdc041c37fd0 Mon Sep 17 00:00:00 2001 From: jdettmannnava <145699825+jdettmannnava@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:47:54 -0500 Subject: [PATCH] sync main --- .github/workflows/deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bcdd5e8..002ce90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,8 +30,6 @@ jobs: params: | SONAR_HOST_URL=/sonarqube/url SONAR_TOKEN=/sonarqube/token - - name: Test aws connection - run: aws s3 ls s3://stage.dpc.cms.gov/ - name: Run quality gate scan if: ${{ startsWith(github.ref, 'refs/tags/') }} uses: sonarsource/sonarqube-scan-action@master @@ -43,5 +41,14 @@ jobs: -Dsonar.branch.name=${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} -Dsonar.projectVersion=${{ github.ref_name == 'main' && github.sha || 'branch' }} -Dsonar.qualitygate.wait=true - - name: "List directory pre build" - run: ls _site + - name: List Bucket before sync + run: aws s3 ls s3://stage.dpc.cms.gov/ + - name: "Sync _site" + run: aws s3 sync _site/ s3://stage.dpc.cms.gov/ --delete + - name: Upload html files without suffix with content-language set + run: | + for file in _site/*.html; do + aws s3 cp ${file} s3://stage.dpc.cms.gov/${file/.html} --content-language text/html + done + - name: List Bucket after sync + run: aws s3 ls s3://stage.dpc.cms.gov/