forked from sktelecom/sktelecom.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.22 KB
/
Copy pathci.yml
File metadata and controls
45 lines (37 loc) · 1.22 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
name: PR Build Check
# PR 단계에서 Hugo/Docsy 업데이트가 사이트 빌드를 깨뜨리지 않는지 검증한다.
# 배포(gh-pages)는 하지 않고 빌드 성공 여부만 확인한다.
on:
pull_request:
branches: ["master"]
permissions:
contents: read
concurrency:
group: pr-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
submodules: recursive
fetch-depth: 0
- name: Setup Node (Latest)
uses: actions/setup-node@v7
with:
node-version: 'current'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm install
- name: Build Marp Slides
run: |
npx @marp-team/marp-cli@latest slides/oss-education.md \
--html \
--output static/slides/oss-education.html
# Hugo 버전은 package.json 의 hugo-extended(고정 버전)를 사용한다.
# → Dependabot(npm)이 Hugo 버전을 자동 추적/업데이트한다.
- name: Build with Hugo
run: npx hugo --minify --baseURL "https://sktelecom.github.io/"