File tree 3 files changed +873
-0
lines changed
3 files changed +873
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : github pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main # Set a branch to deploy
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-18.04
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ submodules : true # Fetch Hugo themes (true OR recursive)
15
+ fetch-depth : 1 # Fetch all history for .GitInfo and .Lastmod
16
+ - uses : bahmutov/npm-install@v1
17
+
18
+ - name : Setup Hugo
19
+ uses : peaceiris/actions-hugo@v2
20
+ with :
21
+ hugo-version : ' latest'
22
+ # extended: true
23
+
24
+ - name : Build
25
+ run : |
26
+ npm install -D --save autoprefixer
27
+ npm install -D --save postcss-cli
28
+ hugo --minify
29
+
30
+ - name : Deploy
31
+ uses : peaceiris/actions-gh-pages@v3
32
+ with :
33
+ github_token : ${{ secrets.TOKEN }}
34
+ publish_dir : ./public
Original file line number Diff line number Diff line change
1
+ [submodule "themes/docsy "]
2
+ path = themes/docsy
3
+ url = https://github.com/google/docsy.git
You can’t perform that action at this time.
0 commit comments