Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev
Browse files Browse the repository at this point in the history
* origin/master:
  feat: add aria-lable to object element (#114)
  chore: clear cloudfront cache after deploy (#97)
  • Loading branch information
r4mmer committed Sep 13, 2021
2 parents 83ebcef + 00a569f commit d8ab818
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'us-east-1'
CLOUDFRONT_ID: E2TGO5SVP34CC3
deploy-mainnet-explorer:
if: startsWith(github.ref, 'refs/tags/v')
needs: dependencies
Expand All @@ -78,4 +79,5 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: 'us-east-1'
AWS_DEFAULT_REGION: 'us-east-1'
CLOUDFRONT_ID: ETOC9JKCK86OG
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ testnet_s3_sync:
aws s3 sync --delete ./build/ s3://hathor-testnet-foxtrot-public-explorer

.PHONY: testnet_deploy
testnet_deploy: check_version testnet_s3_sync
testnet_deploy: check_version testnet_s3_sync clear_cloudfront_cache

.PHONY: mainnet_build
mainnet_build:
Expand All @@ -35,7 +35,11 @@ mainnet_s3_sync:
aws s3 sync --delete ./build/ s3://hathor-mainnet-public-explorer

.PHONY: mainnet_deploy
mainnet_deploy: check_version check_tag mainnet_s3_sync
mainnet_deploy: check_version check_tag mainnet_s3_sync clear_cloudfront_cache

.PHONY: clear_cloudfront_cache
clear_cloudfront_cache:
aws cloudfront create-invalidation --distribution-id $$CLOUDFRONT_ID --paths "/index.html"

.PHONY: testnet_local
testnet_local:
Expand Down

0 comments on commit d8ab818

Please sign in to comment.