Skip to content

Commit

Permalink
add package.json script which does not use AWS_PROFILE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed May 12, 2024
1 parent 843e79f commit 4843981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'us-east-1'
run: yarn deploy
run: yarn deploy:ci

- name: Invalidate CloudFront
if: github.ref == 'refs/heads/main' || github.event_name != 'pull_request'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'us-east-1'
run: yarn invalidate
run: yarn invalidate:ci
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"postexport": "npm run seo",
"seo": "node ./seo/seo.js",
"deploy": "AWS_PROFILE=webinc aws s3 sync out/ s3://docs.cosmology.zone",
"deploy:ci": "aws s3 sync out/ s3://docs.cosmology.zone",
"invalidate": "AWS_PROFILE=webinc aws cloudfront create-invalidation --distribution-id E2CDD5CS37JQUE --paths \"/*\"",
"invalidate:ci": "aws cloudfront create-invalidation --distribution-id E2CDD5CS37JQUE --paths \"/*\"",
"deploy:all": "npm run export && npm run deploy && ./seo/prepare.sh",
"upgrade": "yarn upgrade-interactive --latest"
},
Expand Down

0 comments on commit 4843981

Please sign in to comment.