Skip to content

Commit

Permalink
DOC-2324: Fix bucket name
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchC1999 committed Apr 10, 2024
1 parent c2a342a commit 807a1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/develop_7_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Add redirect for current major version pages to latest
run: |
S3_BUCKET=`docs-${process.env.GITHUB_REF.replace("refs/heads/","").replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud`
S3_BUCKET=$(node -e 'console.log(`docs-${process.env.GITHUB_REF.replace("refs/heads/","").replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud`)')
touch index.html
aws s3api put-object --bucket ${S3_BUCKET} --key '/docs/tinymce/7/(.*)' --body index.html --website-redirect '/docs/tinymce/latest/$1' --acl public-read
env:
Expand Down

0 comments on commit 807a1ff

Please sign in to comment.