File tree Expand file tree Collapse file tree 4 files changed +69
-11
lines changed Expand file tree Collapse file tree 4 files changed +69
-11
lines changed Original file line number Diff line number Diff line change 1+ name : MAIN CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ Deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout source code
14+ uses : actions/checkout@v3
15+
16+ - name : Install pnpm
17+ run : |
18+ npm install -g pnpm
19+
20+ - name : Get pnpm store path
21+ id : pnpm-cache-path
22+ run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
23+
24+ - name : Cache pnpm modules
25+ id : cache
26+ uses : actions/cache@v3
27+ with :
28+ path : ${{ env.STORE_PATH }}
29+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
30+ restore-keys : |
31+ ${{ runner.os }}-pnpm-
32+ ${{ runner.os }}-
33+
34+ - name : Install Dependencies
35+ run : |
36+ pnpm install --frozen-lockfile
37+ pnpm store prune
38+
39+ - name : Set up .env file
40+ run : |
41+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > .env.production
42+ echo "HTTPS=true" >> .env.production
43+
44+ - name : Build
45+ run : pnpm run build
46+
47+ - name : Configure AWS Credentials
48+ uses : aws-actions/configure-aws-credentials@v2
49+ with :
50+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
51+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
52+ aws-region : ${{ secrets.AWS_REGION }}
53+
54+ - name : Deploy to S3
55+ run : aws s3 sync ./dist s3://${{ secrets.AWS_BUCKET_NAME }} --delete
56+
57+ - name : Invalidate CloudFront Cache
58+ run : aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths "/*"
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ queryClient.setDefaultOptions({
1515} ) ;
1616
1717createRoot ( document . getElementById ( 'root' ) ! ) . render (
18- // <StrictMode>
19- < QueryClientProvider client = { queryClient } >
20- < BrowserRouter >
21- < App />
22- </ BrowserRouter >
23- </ QueryClientProvider > ,
24- // </StrictMode>
18+ < StrictMode >
19+ < QueryClientProvider client = { queryClient } >
20+ < BrowserRouter >
21+ < App />
22+ </ BrowserRouter >
23+ </ QueryClientProvider >
24+ </ StrictMode > ,
2525) ;
Original file line number Diff line number Diff line change 66 getSharePostDetail ,
77 postShareProposalApproval ,
88 SharePost ,
9- postSharePostLike ,
109 getSharePostLikeCount ,
10+ postSharePostLike ,
1111} from '@/apis/share' ;
1212import BlurImg from '@/assets/images/landing-blur.png' ;
1313import ReportModal from '@/components/ReportModal' ;
@@ -99,9 +99,9 @@ const LetterBoardDetailPage = ({ confirmDisabled }: ShareLetterPreviewProps) =>
9999 < >
100100 { activeReportModal && (
101101 < ReportModal
102- reportType = "POST"
103- letterId = { parseInt ( sharePostId ) }
104102 onClose = { ( ) => setActiveReportModal ( false ) }
103+ reportType = { 'SHARE_POST' }
104+ letterId = { parseInt ( sharePostId ) }
105105 />
106106 ) }
107107 < div className = "grow bg-white" >
Original file line number Diff line number Diff line change 11type Status = 'PENDING' | 'RESOLVED' | 'REJECTED' ;
2- type ReportType = 'LETTER' | 'POST ' | 'COMMENT' ;
2+ type ReportType = 'LETTER' | 'SHARE_POST ' | 'COMMENT' ;
33type Reason = 'ABUSE' | 'DEFAMATION' | 'HARASSMENT' | 'THREATS' | 'ETC' ;
44
55interface ReportQueryString {
You can’t perform that action at this time.
0 commit comments