File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Integration
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+ with :
17+ submodules : " true"
18+
19+ - name : Setup Hugo
20+ uses : peaceiris/actions-hugo@v2
21+ with :
22+ hugo-version : ' 0.110.0'
23+ # extended: true
24+
25+ - name : Setup Node
26+ uses : actions/setup-node@v3
27+ with :
28+ node-version : ' 18'
29+ cache : ' npm'
30+ # The action defaults to search for the dependency file (package-lock.json,
31+ # npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
32+ # hash as a part of the cache key.
33+ # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
34+ cache-dependency-path : ' **/package-lock.json'
35+
36+ - name : Install PostCSS
37+ run : npm install postcss-cli
38+
39+ - name : Build
40+ run : hugo --minify
41+
42+ # TODO: Uncomment when cleaned up
43+ # - name: Validate HTML and links
44+ # uses: anishathalye/proof-html@v2
45+ # with:
46+ # directory: ./_site
47+ # enforce_https: false
You can’t perform that action at this time.
0 commit comments