-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
5,464 additions
and
7,973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- 'main' | ||
- 'deploy' | ||
|
||
jobs: | ||
rapid: | ||
|
@@ -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 | ||
|
@@ -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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,5 @@ | |
"prettier-plugin-tailwindcss": "^0.6.6", | ||
"react-icons": "^5.3.0", | ||
"tailwindcss": "^3.4.1" | ||
}, | ||
"packageManager": "[email protected]+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774" | ||
} | ||
} | ||
} |
Oops, something went wrong.