1111 options :
1212 - ' staging'
1313 - ' production'
14+ push :
1415
1516env :
1617 ACCT : ${{ inputs.environment == 'production' && '990880627107' || '327995277200' }}
@@ -53,33 +54,33 @@ jobs:
5354 run : |
5455 mv ./build/docs/sitemap.xml ./build/docs/antora-sitemap.xml
5556
56- - name : configure aws credentials
57- uses :
aws-actions/[email protected] 58- with :
59- role-to-assume : ' arn:aws:iam::${{ env.ACCT }}:role/${{ inputs.environment }}-tinymce-docs-update'
60- role-session-name : tinymce-docs-${{ inputs.environment }}-release
61- aws-region : us-east-1
62-
63- - name : Upload website preview to S3
64- run : |
65- aws s3 sync ./build s3://${BUCKET}/main/${RUN}
66-
67- - name : Create redirects on S3
68- 69- with :
70- build : ./build/
71- redirects : ./redirects.json
72- bucket : ${{ env.BUCKET }}
73- prefix : main/${{ env.RUN }}
74- parallel : 10
75-
76- - name : Update pointer to current run output
77- run : |
78- aws s3api put-object --bucket ${BUCKET} --key main/index.html --body .github/workflows/resources/empty.html --content-type text/html --metadata pointer=${RUN}
79-
80- - name : Tag old versions for cleanup
81- 82- with :
83- bucket : ${{ env.BUCKET }}
84- folder : main
85- 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