File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
9
9
permissions :
10
- id-token : write
11
- contents : read
10
+ id-token : write
11
+ contents : read
12
12
13
13
jobs :
14
14
deploy :
18
18
- name : Checkout code
19
19
uses : actions/checkout@v3
20
20
21
+ - name : Set up Node.js
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : ' 18' # Specify the Node.js version you need
25
+
26
+ - name : Install dependencies
27
+ run : npm install
28
+
29
+ - name : Build project
30
+ run : npm run build
31
+
21
32
- name : Configure AWS credentials using Assume Role
22
33
uses : aws-actions/configure-aws-credentials@v2
23
34
with :
27
38
28
39
- name : Sync S3 bucket
29
40
run : |
30
- aws s3 sync . ${{ secrets.PORTFOLIO_BUCKET }} --delete
41
+ aws s3 sync ./dist ${{ secrets.PORTFOLIO_BUCKET }} --delete # Ensure correct path to built files
31
42
32
43
- name : Invalidate CloudFront cache
33
44
run : |
You can’t perform that action at this time.
0 commit comments