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+ version : 2
2+ updates :
3+ - package-ecosystem : gitsubmodule
4+ directory : " /"
5+ schedule :
6+ interval : daily
Original file line number Diff line number Diff line change 1+ name : Deploy Hugo site to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - dev
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : true
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Install Hugo
22+ run : |
23+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.deb
24+ sudo dpkg -i ${{ runner.temp }}/hugo.deb
25+ - uses : actions/checkout@v4
26+ with :
27+ submodules : recursive
28+ fetch-depth : 0
29+ - uses : actions/configure-pages@v5
30+ id : pages
31+ - name : Build
32+ working-directory : " ./"
33+ env :
34+ HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
35+ HUGO_ENVIRONMENT : production
36+ run : |
37+ hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}"
38+ - uses : actions/upload-pages-artifact@v3
39+ with :
40+ name : github-pages
41+ path : ./public/
42+
43+ deploy :
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ needs : build
49+ steps :
50+ - uses : actions/deploy-pages@v4
51+ id : deployment
Original file line number Diff line number Diff line change 1+ /public /
2+ /resources /
3+ /.hugo_build.lock
Original file line number Diff line number Diff line change 1+ [submodule "themes "]
2+ path = themes
3+ url = https://github.com/minecraft-access/hugo-themes
4+ branch = dev
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Home"
3+ ---
Original file line number Diff line number Diff line change 1+ languageCode : en
2+ title : " Minecraft Access Server Docs"
3+ disableKinds :
4+ - taxonomy
5+ - term
6+ - rss
7+ theme :
8+ - docs
9+
10+ security :
11+ funcs :
12+ getenv :
13+ - ^GITHUB_REPOSITORY$
14+ - ^GITHUB_REF_NAME$
15+ - ^GITHUB_SHA$
Original file line number Diff line number Diff line change 1+ { pkgs ? import <nixpkgs> { } } :
2+
3+ pkgs . mkShell {
4+ nativeBuildInputs = with pkgs . buildPackages ; [
5+ hugo
6+ ] ;
7+ }
You can’t perform that action at this time.
0 commit comments