-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) ยท 1.34 KB
/
Copy pathdeploy.yml
File metadata and controls
52 lines (42 loc) ยท 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ์ํฌํ๋ก์ฐ์ ์ด๋ฆ
name: Deploy to GitHub Pages
on:
push:
tags:
- 'post/*' # git tag post/yyyy-mm-dd-xx.. ๊ฐ์ ํํ์ ํ๊ทธ์๋ง ๋ฐ์ํฉ๋๋ค.
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
# ์ ์ ์ฌ์ดํธ ๋น๋
- name: Build
run: pnpm run build:prod
# 4. ๋น๋ ๊ฒฐ๊ณผ๋ฌผ(public ๋๋ ํฐ๋ฆฌ)์ gh-pages ๋ธ๋์น์ ๋ฐฐํฌ
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
# GitHub Actions๊ฐ ์ปค๋ฐ/ํธ์๋ฅผ ํ ์ ์๋๋ก ํ ํฐ์ ์ ๊ณตํฉ๋๋ค.
github_token: ${{ secrets.GITHUB_TOKEN }}
# ๋ฐฐํฌํ ๋๋ ํฐ๋ฆฌ๋ฅผ ์ง์ ํฉ๋๋ค. (๋น๋ ๊ฒฐ๊ณผ๋ฌผ์ด ๋ด๊ธด ๊ณณ)
publish_dir: ./public
# ์ปค๋ฐ ๋ฉ์์ง๋ฅผ ํ๊ทธ ์ด๋ฆ์ผ๋ก ์ฌ์ฉํฉ๋๋ค.
commit_message: Deploy ${{ github.ref_name }}