Skip to content

Commit 4924765

Browse files
committed
TCLOUD-4860: Re-enable upload features; leave push trigger for now
1 parent 4181303 commit 4924765

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/workflows/deploy_docs_v2.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,33 +54,33 @@ jobs:
5454
run: |
5555
mv ./build/docs/sitemap.xml ./build/docs/antora-sitemap.xml
5656
57-
# - name: configure aws credentials
58-
# uses: aws-actions/[email protected]
59-
# with:
60-
# role-to-assume: 'arn:aws:iam::${{ env.ACCT }}:role/${{ inputs.environment }}-tinymce-docs-update'
61-
# role-session-name: tinymce-docs-${{ inputs.environment }}-release
62-
# aws-region: us-east-1
63-
64-
# - name: Upload website preview to S3
65-
# run: |
66-
# aws s3 sync ./build s3://${BUCKET}/main/${RUN}
67-
68-
# - name: Create redirects on S3
69-
# uses: tinymce/[email protected]
70-
# with:
71-
# build: ./build/
72-
# redirects: ./redirects.json
73-
# bucket: ${{ env.BUCKET }}
74-
# prefix: main/${{ env.RUN }}
75-
# parallel: 10
76-
77-
# - name: Update pointer to current run output
78-
# run: |
79-
# aws s3api put-object --bucket ${BUCKET} --key main/index.html --body .github/workflows/resources/empty.html --content-type text/html --metadata pointer=${RUN}
80-
81-
# - name: Tag old versions for cleanup
82-
# uses: tinymce/[email protected]
83-
# with:
84-
# bucket: ${{ env.BUCKET }}
85-
# folder: main
86-
# parallel: 20
57+
- name: configure aws credentials
58+
uses: aws-actions/[email protected]
59+
with:
60+
role-to-assume: 'arn:aws:iam::${{ env.ACCT }}:role/${{ inputs.environment }}-tinymce-docs-update'
61+
role-session-name: tinymce-docs-${{ inputs.environment }}-release
62+
aws-region: us-east-1
63+
64+
- name: Upload website preview to S3
65+
run: |
66+
aws s3 sync ./build s3://${BUCKET}/main/${RUN}
67+
68+
- name: Create redirects on S3
69+
uses: tinymce/[email protected]
70+
with:
71+
build: ./build/
72+
redirects: ./redirects.json
73+
bucket: ${{ env.BUCKET }}
74+
prefix: main/${{ env.RUN }}
75+
parallel: 10
76+
77+
- name: Update pointer to current run output
78+
run: |
79+
aws s3api put-object --bucket ${BUCKET} --key main/index.html --body .github/workflows/resources/empty.html --content-type text/html --metadata pointer=${RUN}
80+
81+
- name: Tag old versions for cleanup
82+
uses: tinymce/[email protected]
83+
with:
84+
bucket: ${{ env.BUCKET }}
85+
folder: main
86+
parallel: 20

0 commit comments

Comments
 (0)