-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (37 loc) · 1.12 KB
/
deploy-gh-pages.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
name: Build the site and deploy to GitHub pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout (tutorials)
uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Checkout (theme)
uses: actions/checkout@v3
with:
repository: MunifTanjim/minimo
ref: v2.9.0
path: themes/minimo
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.88.1'
# extended: true
- name: Build
run: hugo
# Need to add post build for the search functionality...
- name: Install JS dependencies to build the index
run: npm install lunr glob
- name: Generate search index
run: node themes/minimo/scripts/generate-search-index-lunr.js
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public