Skip to content

Commit

Permalink
DOC-2324: Set workflow to deploy to correct buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchC1999 committed Apr 15, 2024
1 parent 395e286 commit ece5faf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ jobs:
run: |
mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml
- name: Upload website to S3 and Invalidate Cache
- name: Upload website to Staging S3 and Invalidate Cache
if: inputs.environment == 'staging'
run: |
aws s3 sync --acl=public-read --delete ./build/site s3://docs-feature-6-doc-2324.staging.tiny.cloud/docs
aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs
aws cloudfront create-invalidation --distribution-id E7DUUPEI08HNW --paths "/docs/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true

- name: Upload website to S3 and Invalidate Cache
- name: Upload website to Production S3 and Invalidate Cache
if: inputs.environment == 'production'
run: |
aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-production/docs
aws cloudfront create-invalidation --distribution-id E3LFU502SQ5UR --paths "/docs/*"
aws s3 sync --acl=public-read --delete ./build/site s3://docs-feature-7-doc-2324.staging.tiny.cloud/docs
env:
AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit ece5faf

Please sign in to comment.