Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy: region 관련 오류 수정 #37

Merged
merged 4 commits into from
Oct 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/deploy-admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
pull_request:
branches: ["develop"]
types: ["closed"]
workflow_dispatch:
env:
AWS_REGION: ap-northeast-2
ADMIN_BUCKET_NAME: vision.gdsc-knu.com
permissions:
contents: read

jobs:
deploy:
Expand All @@ -25,7 +31,6 @@ jobs:
- name: Create .env file
run: |
echo "VITE_APP_BASE_URL=${{ secrets.VITE_APP_BASE_URL }}" >> .env
echo "VITE_ENV"=${{ secrets.VITE_ENV }} >> .env

- name: Install Dependencies
run: yarn admin install
Expand All @@ -42,7 +47,7 @@ jobs:

- name: Upload to AWS S3
env:
BUCKET_NAME: ${{secrets.ADMIN_BUCKET_NAME}}
BUCKET_NAME: ${{env.ADMIN_BUCKET_NAME}}
run: aws s3 sync packages/admin/dist s3://$BUCKET_NAME --delete

- name: Invalidate Cloudfront Cache
Expand Down