@@ -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- 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- 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+ 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+ 83+ with :
84+ bucket : ${{ env.BUCKET }}
85+ folder : main
86+ parallel : 20
0 commit comments