-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 1️⃣ 작업 내용 Summary 2차 + 질의응답게시판 + 자료집이 개발된 develop 브랜치 사항을 main으로 merge합니다 ## 2️⃣ 추후 작업할 내용 ## 3️⃣ 체크리스트 - [x] `develop` 브랜치의 최신 코드를 `pull` 받았나요? --------- Co-authored-by: ParkSumin <fhsjdvs@gmail.com> Co-authored-by: naraeng <nauurr@naver.com> Co-authored-by: nebulaBdj <dongdung5070@gmail.com> Co-authored-by: Hyomin Koo <me@eatsteak.dev> Co-authored-by: nebulaBdj <114459629+nebulaBdj@users.noreply.github.com> Co-authored-by: 김혜령 <92776341+h-ye-ryoung@users.noreply.github.com> Co-authored-by: 박수민 <141231525+ssumai-kr@users.noreply.github.com>
- Loading branch information
1 parent
5839595
commit bc82477
Showing
236 changed files
with
7,369 additions
and
2,842 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
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,38 @@ | ||
name: Lint & Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
environment: develop | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
- name: Retrive caches | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('yarn.lock') }} | ||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install project | ||
run: yarn install --immutable | ||
- name: Check Prettier | ||
run: yarn prettier:check | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: yarn build | ||
env: | ||
VITE_API_URL: ${{ vars.VITE_API_URL }} | ||
VITE_REDIRECT_URI: ${{ vars.VITE_REDIRECT_URI }} | ||
VITE_REST_API_KEY: ${{ secrets.VITE_REST_API_KEY }} |
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,55 @@ | ||
name: Deployment (Develop) | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
environment: develop | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
- name: Retrive caches | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('yarn.lock') }} | ||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install project | ||
run: yarn install --immutable | ||
- name: Build | ||
run: yarn build | ||
env: | ||
VITE_API_URL: ${{ vars.VITE_API_URL }} | ||
VITE_REDIRECT_URI: ${{ vars.VITE_REDIRECT_URI }} | ||
VITE_REST_API_KEY: ${{ secrets.VITE_REST_API_KEY }} | ||
- name: Compress build artifacts | ||
run: tar -cvf ./dist.tar ./dist | ||
- name: Upload with SCP | ||
uses: appleboy/scp-action@v0.1.7 | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SSH_HOST }} | ||
key: ${{ secrets.SSH_KEY }} | ||
source: 'dist.tar' | ||
target: '/home/ubuntu/' | ||
- name: Extract artifact with SSH | ||
uses: appleboy/ssh-action@v1.2.0 | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SSH_HOST }} | ||
key: ${{ secrets.SSH_KEY }} | ||
script: | | ||
tar -xvf ./dist.tar ./dist | ||
sudo rm -rf /var/www/homepage-frontend | ||
sudo mv ./dist /var/www/homepage-frontend | ||
rm -rf ./dist | ||
rm -f ./dist.tar |
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 |
---|---|---|
@@ -1,48 +1,55 @@ | ||
name: Deploy | ||
name: Deployment (Production) | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
container: pandoc/latex | ||
|
||
environment: prod | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install mustache (to update the date) | ||
|
||
run: apk add ruby && gem install mustache | ||
|
||
- name: creates output | ||
|
||
run: sh ./build.sh | ||
|
||
- name: Pushes to another repository | ||
|
||
id: push_directory | ||
|
||
uses: cpina/github-action-push-to-another-repository@main | ||
|
||
- name: Repository checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
- name: Retrive caches | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('yarn.lock') }} | ||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install project | ||
run: yarn install --immutable | ||
- name: Build | ||
run: yarn build | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }} | ||
|
||
VITE_API_URL: ${{ vars.VITE_API_URL }} | ||
VITE_REDIRECT_URI: ${{ vars.VITE_REDIRECT_URI }} | ||
VITE_REST_API_KEY: ${{ secrets.VITE_REST_API_KEY }} | ||
- name: Compress build artifacts | ||
run: tar -cvf ./dist.tar ./dist | ||
- name: Upload with SCP | ||
uses: appleboy/scp-action@v0.1.7 | ||
with: | ||
source-directory: 'output' | ||
|
||
destination-github-username: ssu-it-support | ||
|
||
destination-repository-name: homepage-frontend | ||
|
||
user-email: ${{ secrets.EMAIL }} | ||
|
||
commit-message: ${{ github.event.commits[0].message }} | ||
|
||
target-branch: main | ||
|
||
- name: Test get variable exported by push-to-another-repository | ||
|
||
run: echo $DESTINATION_CLONED_DIRECTORY | ||
username: ubuntu | ||
host: ${{ secrets.SSH_HOST }} | ||
key: ${{ secrets.SSH_KEY }} | ||
source: 'dist.tar' | ||
target: '/home/ubuntu/' | ||
- name: Extract artifact with SSH | ||
uses: appleboy/ssh-action@v1.2.0 | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SSH_HOST }} | ||
key: ${{ secrets.SSH_KEY }} | ||
script: | | ||
tar -xvf ./dist.tar ./dist | ||
sudo rm -rf /var/www/homepage-frontend | ||
sudo mv ./dist /var/www/homepage-frontend | ||
rm -rf ./dist | ||
rm -f ./dist.tar |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
"trailingComma": "es5", | ||
"printWidth": 120, | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
"components": "@/components", | ||
"utils": "@/libs/utils" | ||
} | ||
} | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.