-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cesar Faber
authored and
Cesar Faber
committed
Jan 25, 2024
1 parent
350c0df
commit 9a9251a
Showing
1 changed file
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 📦 Build | ||
run-name: 📦 Build triggered | ||
on: push | ||
jobs: | ||
build: | ||
name: cesarolvr.com build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: install node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: install app dependencies | ||
run: yarn | ||
|
||
- name: building app | ||
run: yarn build | ||
|
||
- name: uploading to S3 | ||
run: | | ||
aws s3 sync ./public s3://cesarolvr | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | ||
AWS_DEFAULT_REGION: us-east-1 | ||
|
||
- name: Invalidate cloudfront | ||
run: aws cloudfront create-invalidation --distribution-id EI0DQ7VKOZ8XL --paths "/*" --region us-east-1 |