From ece5faf562fcd808d3587b2a918527b7b7c98d91 Mon Sep 17 00:00:00 2001 From: MitchCTiny Date: Mon, 15 Apr 2024 14:16:56 +1000 Subject: [PATCH] DOC-2324: Set workflow to deploy to correct buckets --- .github/workflows/deploy_docs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 76710f7400..f113411d5c 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -44,21 +44,21 @@ jobs: run: | mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml - - name: Upload website to S3 and Invalidate Cache + - name: Upload website to Staging S3 and Invalidate Cache if: inputs.environment == 'staging' run: | - aws s3 sync --acl=public-read --delete ./build/site s3://docs-feature-6-doc-2324.staging.tiny.cloud/docs + aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs aws cloudfront create-invalidation --distribution-id E7DUUPEI08HNW --paths "/docs/*" env: AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }} AWS_EC2_METADATA_DISABLED: true - - name: Upload website to S3 and Invalidate Cache + - name: Upload website to Production S3 and Invalidate Cache if: inputs.environment == 'production' run: | + aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs aws cloudfront create-invalidation --distribution-id E3LFU502SQ5UR --paths "/docs/*" - aws s3 sync --acl=public-read --delete ./build/site s3://docs-feature-7-doc-2324.staging.tiny.cloud/docs env: AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}