From e38b911a43e8b395725a50adc444c9bb431f208f Mon Sep 17 00:00:00 2001 From: Mitchell Crompton Date: Fri, 12 Jan 2024 15:09:43 +1000 Subject: [PATCH] DOC-2234: Modify workflow to not overwrite 5 docs (#3041) --- .github/workflows/feature_6_docs.yml | 2 +- .github/workflows/release_6_docs.yml | 4 ++-- .github/workflows/staging_6_docs.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/feature_6_docs.yml b/.github/workflows/feature_6_docs.yml index f6e3842cf7..0d0c71898b 100644 --- a/.github/workflows/feature_6_docs.yml +++ b/.github/workflows/feature_6_docs.yml @@ -56,7 +56,7 @@ jobs: echo $S3_BUCKET > S3_BUCKET - name: (deploy) Upload website to S3 - run: aws s3 sync --acl=public-read --delete ./build/site $(cat S3_BUCKET)/docs + run: aws s3 sync --acl=public-read --delete ./build/site $(cat S3_BUCKET)/docs --exclude 'tinymce/5' env: AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/release_6_docs.yml b/.github/workflows/release_6_docs.yml index a33072ab4d..5ed2d14ea3 100644 --- a/.github/workflows/release_6_docs.yml +++ b/.github/workflows/release_6_docs.yml @@ -40,8 +40,8 @@ jobs: run: | mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml - - name: (deploy) Upload to S3 - run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs + - name: (deploy) Upload site to S3 + run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs --exclude 'tinymce/5' env: AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/staging_6_docs.yml b/.github/workflows/staging_6_docs.yml index b52c2bff12..8a497d43b1 100644 --- a/.github/workflows/staging_6_docs.yml +++ b/.github/workflows/staging_6_docs.yml @@ -40,8 +40,8 @@ jobs: run: | mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml - - name: (deploy) Upload to S3 - run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs + - name: (deploy) Upload site to S3 + run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs --exclude 'tinymce/5' env: AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}