Skip to content

Commit b9bed7a

Browse files
authored
Merge pull request #15 from DMU-DebugVisual/inseong
๐Ÿš€ GitHub Actions๋ฅผ ํ†ตํ•œ ์ž๋™ ๋ฐฐํฌ ์„ค์ • ์™„๋ฃŒ
2 parents 9d3acae + f0bb37a commit b9bed7a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Pages Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- main # main ๋ธŒ๋žœ์น˜์— pushํ•  ๋•Œ ์ž๋™ ๋ฐฐํฌ
7+
8+
jobs:
9+
build:
10+
name: Build and Deploy to GitHub Pages
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18 # ํ”„๋กœ์ ํŠธ์— ๋งž๋Š” Node.js ๋ฒ„์ „
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Build Project
26+
run: npm run build # ํ”„๋กœ์ ํŠธ์— ๋งž๋Š” ๋นŒ๋“œ ๋ช…๋ น์–ด๋กœ ์ˆ˜์ •
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./build # ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์ด ์ €์žฅ๋˜๋Š” ๋””๋ ‰ํ† ๋ฆฌ (React๋Š” ๋ณดํ†ต build)

0 commit comments

Comments
ย (0)