File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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)
You canโt perform that action at this time.
0 commit comments