Skip to content

Commit

Permalink
Upload lighthouse metrics to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
tanayseven committed Feb 10, 2024
1 parent e4478a9 commit 4442fdb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
export GOOGLE_ANALYTICS_ID=${{ secrets.GOOGLE_ANALYTICS_ID }}
make clean && make html
- name: Deploy to AWS bucket
- name: Deploy website to AWS bucket
run: aws s3 sync _build/html s3://blog.tanay.tech --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -47,8 +47,9 @@ jobs:
npx --yes lighthouse-badges --version
npx --yes lighthouse-badges --url "https://blog.tanay.tech/" -o test_results
- name: Install Netlify CLI
run: npm install netlify-cli -g

- name: Publish the performance badges to Netlify
run: netlify deploy --auth=${{ secrets.NETLIFY_TOKEN }} --dir=test_results/ --site=tanayseven-badges-personal-website.netlify.app
- name: Deploy lighthouse metrics to AWS bucket
run: aws s3 sync test_results s3://blog.tanay.tech/test_results/
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

0 comments on commit 4442fdb

Please sign in to comment.