Skip to content

Commit

Permalink
Merge pull request #117 from softeerbootcamp4th/fix/#115-env
Browse files Browse the repository at this point in the history
Fix/#115 env
  • Loading branch information
k000927 authored Aug 7, 2024
2 parents 27ed36d + 37bdbec commit b2edf9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/admin_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
run: yarn
working-directory: ${{ env.working-directory }}

# build
- name: Build project
run: yarn build
working-directory: ${{ env.working-directory }}

- name: Set Environment Variables
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run:
echo "VITE_API_URL=${VITE_API_URL}" >> .env

# build
- name: Build project
run: yarn build
working-directory: ${{ env.working-directory }}

# S3 버킷에 배포
- name: Deploy static site to S3 bucket
run: aws s3 sync ./admin/dist s3://hybridjgs-admin
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/client_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ jobs:
- name: Install dependencies
run: yarn
working-directory: ${{ env.working-directory }}

# build
- name: Build project
run: yarn build
working-directory: ${{ env.working-directory }}


- name: Set Environment Variables
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run:
echo "VITE_API_URL=${VITE_API_URL}" >> .env

# build
- name: Build project
run: yarn build
working-directory: ${{ env.working-directory }}

# S3 버킷에 배포
- name: Deploy static site to S3 bucket
run: aws s3 sync ./client/dist s3://hybridjgs-frontend
Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Hybrid-JGS</title>
</head>
<body>
<div id="root">성진이 왔다감</div>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>

0 comments on commit b2edf9f

Please sign in to comment.