File tree 2 files changed +39
-75
lines changed
2 files changed +39
-75
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - hugo
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-20.04
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
15
+
16
+ - name : Build Link Index
17
+ uses : jackyzha0/hugo-obsidian@v2.20
18
+ with :
19
+ index : true
20
+ input : content
21
+ output : assets/indices
22
+ root : .
23
+
24
+ - name : Setup Hugo
25
+ uses : peaceiris/actions-hugo@v2
26
+ with :
27
+ hugo-version : ' 0.96.0'
28
+ extended : true
29
+
30
+ - name : Build
31
+ run : hugo --minify
32
+
33
+ - name : Deploy
34
+ uses : peaceiris/actions-gh-pages@v3
35
+ with :
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir : ./public
38
+ publish_branch : deploy # deploying branch
39
+ cname : akippnn.github.io
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments