-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (45 loc) · 1.33 KB
/
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
name: Build
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
CI:
name: 🔨🚀 Build and deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Checkout
uses: actions/checkout@v3
- name: 🐍 Use Python 3.x
uses: actions/[email protected]
with:
python-version: 3.x
cache: pip
- name: ⏬ Install Python dependencies
run: pip install -r requirements.txt
- name: 🐉 Use Node.js 18.16.x
uses: actions/setup-node@v3
with:
node-version: 18.16.x
cache: "npm"
- name: ⏬ Install Node dependencies
run: npm ci
- name: 🔥 Optimize icon font
run: npm run minify-icons
- name: 🔨 Build site
run: npm run build
- name: 📦 Upload build artifacts
uses: actions/[email protected]
with:
name: build
path: build
- name: Disable jekyll
run: touch build/.nojekyll
- name: Custom domain
run: echo 'manager.charachorder.com' > build/CNAME
- run: git config user.name github-actions
- run: git config user.email [email protected]
- run: git --work-tree build add --all
- run: git commit -m "Automatic Deploy action run by github-actions"
- run: git push origin HEAD:gh-pages --force