Skip to content

Commit 5f7ef87

Browse files
authored
DOC-2234: Fix workflow to not overwrite 5 site (#3045)
* DOC-2234: Modify workflow to not overwrite 5 docs * DOC-2234: Test 5 dev site * DOC-2234: Testing workflow * DOC-2234: Testing new workflow * DOC-2234: Testing workflow * DOC-2234: Fix workflow * DOC-2234: Test workflow * DOC-2234: Apply new workflow to staging and release
1 parent e38b911 commit 5f7ef87

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/feature_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
echo $S3_BUCKET > S3_BUCKET
5757
5858
- name: (deploy) Upload website to S3
59-
run: aws s3 sync --acl=public-read --delete ./build/site $(cat S3_BUCKET)/docs --exclude 'tinymce/5'
59+
run: aws s3 sync --acl=public-read --delete ./build/site $(cat S3_BUCKET)/docs --exclude 'tinymce/*' --include 'tinymce/latest/*' --include 'tinymce/6/*'
6060
env:
6161
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
6262
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}

.github/workflows/release_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml
4242
4343
- name: (deploy) Upload site to S3
44-
run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs --exclude 'tinymce/5'
44+
run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs --exclude 'tinymce/*' --include 'tinymce/latest/*' --include 'tinymce/6/*'
4545
env:
4646
AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }}
4747
AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}

.github/workflows/staging_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml
4242
4343
- name: (deploy) Upload site to S3
44-
run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs --exclude 'tinymce/5'
44+
run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs --exclude 'tinymce/*' --include 'tinymce/latest/*' --include 'tinymce/6/*'
4545
env:
4646
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
4747
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)