-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.51 KB
/
jekyll_build.yml
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
53
54
55
56
57
58
59
60
61
name: Build and Deploy Jekyll to gh-pages
on:
push:
branches:
- main # `main` 브랜치에 푸시될 때 트리거
workflow_run:
workflows: ["Build and Deploy"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10 # 필요한 Node.js 버전
- name: Install Node.js dependencies
run: |
npm install # `gulp` 및 기타 의존성 설치
- name: Run Gulp tasks
run: |
npx gulp # Gulp를 실행하여 CSS 및 기타 파일 빌드
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1 # 필요한 Ruby 버전
- name: Clean `_site` directory
run: |
rm -rf ./_site
- name: Install dependencies
run: |
gem install bundler
bundle install
bundle clean --force
- name: Build Jekyll site
run: bundle exec jekyll build
- name: test
run: |
cat _site/assets/built/screen.css | grep post-card-author-m
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }} # GitHub 인증 토큰
publish_branch: gh-pages # 배포할 브랜치
publish_dir: ./_site # 배포할 디렉토리