File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Check
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - " images/**"
7+ - " LICENSE"
8+ - " README.md"
9+ branches :
10+ - master
11+ - exampleSite
12+ pull_request :
13+ paths-ignore :
14+ - " images/**"
15+ - " LICENSE"
16+ - " README.md"
17+ branches :
18+ - master
19+ - exampleSite
20+
21+ defaults :
22+ run :
23+ shell : bash
24+
25+ jobs :
26+ build :
27+ runs-on : ubuntu-latest
28+ env :
29+ # min_version from theme.toml
30+ HUGO_VERSION : ${{ github.event.inputs.hugoVersion || '0.146.0' }}
31+ steps :
32+ - name : Install Hugo CLI
33+ run : |
34+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
35+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
36+
37+ - name : Checkout
38+ uses : actions/checkout@v4
39+ with :
40+ ref : exampleSite
41+
42+ - name : Get Theme
43+ run : git submodule update --init --recursive
44+
45+ - name : Update theme to Latest commit
46+ run : git submodule update --remote --merge
47+
48+ - name : Build with Hugo
49+ run : hugo --buildDrafts --gc
You can’t perform that action at this time.
0 commit comments