Skip to content

Commit

Permalink
Update secrets for GA
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 6, 2024
1 parent 14bb88e commit c681bf8
Show file tree
Hide file tree
Showing 4 changed files with 5,464 additions and 7,973 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'main'
- 'deploy'

jobs:
rapid:
Expand All @@ -14,15 +15,15 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Set environment variables - deploy
if: github.ref == 'refs/heads/deploy'
- name: Set environment variables
# if: github.ref == 'refs/heads/deploy'
uses: allenevans/[email protected]
with:
S3_BUCKET: atlas-arena.org
CLOUDFRONT_DISTRIBUTION_ID: E1SHCVL4PPF00M
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN: none
NEXT_PUBLIC_MAPBOX_STYLE_EXPLORE: none
NEXT_PUBLIC_DATA_API: none
ARENA_S3_BUCKET: ${{ secrets.ARENA_S3_BUCKET }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN }}
NEXT_PUBLIC_MAPBOX_STYLE_EXPLORE: ${{ secrets.NEXT_PUBLIC_MAPBOX_STYLE_EXPLORE }}
NEXT_PUBLIC_DATA_API: ${{ secrets.NEXT_PUBLIC_DATA_API }}

- name: Checkout current repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -70,8 +71,8 @@ jobs:
- name: Push data to S3 and clean CloudFront cache
if: ${{ success() }}
run: |
aws s3 sync web_app/out/ s3://${{ env.S3_BUCKET }}/ --acl public-read --delete
aws s3 sync web_app/out/ s3://${{ env.ARENA_S3_BUCKET }}/ --acl public-read --delete
aws cloudfront create-invalidation --distribution-id=${{ env.CLOUDFRONT_DISTRIBUTION_ID }} --paths=/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1 change: 0 additions & 1 deletion web_app/.yarnrc.yml

This file was deleted.

5 changes: 2 additions & 3 deletions web_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@
"prettier-plugin-tailwindcss": "^0.6.6",
"react-icons": "^5.3.0",
"tailwindcss": "^3.4.1"
},
"packageManager": "[email protected]+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774"
}
}
}
Loading

0 comments on commit c681bf8

Please sign in to comment.