File tree 2 files changed +19
-16
lines changed
2 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1
- name : github pages
2
-
1
+ name : Build and publish blog
3
2
on :
4
3
push :
5
4
branches :
6
- - main # Set a branch to deploy
7
- pull_request :
8
-
5
+ - " main"
6
+ pull_request : {}
9
7
jobs :
10
- deploy :
11
- runs-on : ubuntu-20.04
8
+ build :
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ os :
14
+ - ubuntu-latest
12
15
steps :
13
16
- uses : actions/checkout@v2
14
17
with :
15
18
submodules : true # Fetch Hugo themes (true OR recursive)
16
19
fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
17
-
18
- - name : Setup Hugo
19
- uses : peaceiris/actions-hugo@v2
20
- with :
21
- hugo-version : ' 0.92.2'
22
- # extended: true
23
-
24
20
- name : Build
25
- run : hugo --minify
26
-
21
+ run : docker run --rm -v $PWD:/workspace ghcr.io/gbraad-redhat/hugo:0.127.0 --minify
27
22
- name : Deploy
28
23
uses : peaceiris/actions-gh-pages@v3
29
24
if : github.ref == 'refs/heads/main'
Original file line number Diff line number Diff line change 1
1
CRC Blog
2
2
--------
3
3
4
+
5
+ ## Build
6
+ ``` shell
7
+ $ git clone https://github.com/crc-org/blog
8
+ $ cd blog
9
+ $ git submodule update
10
+ $ podman run --rm -v $PWD :/workspace ghcr.io/gbraad-redhat/hugo:0.127.0 --minify
11
+ ```
You can’t perform that action at this time.
0 commit comments