Skip to content

Commit 2f32c4c

Browse files
(hugo) initial website (#1)
#### Features - Create initial website based on hugo
2 parents 31ac8f9 + bb46edb commit 2f32c4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+7275
-0
lines changed

.github/workflows/hugo.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Deploy Hugo
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
defaults:
19+
run:
20+
shell: bash
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
env:
26+
HUGO_VERSION: 0.123.0
27+
steps:
28+
- name: Install Hugo CLI
29+
run: |
30+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
32+
- name: Install Dart Sass
33+
run: sudo snap install dart-sass
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
submodules: recursive
38+
fetch-depth: 0
39+
- name: Setup Pages
40+
id: pages
41+
uses: actions/configure-pages@v4
42+
- name: Install Node.js dependencies
43+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
44+
- name: Build with Hugo
45+
env:
46+
HUGO_ENVIRONMENT: production
47+
HUGO_ENV: production
48+
run: |
49+
hugo \
50+
--gc \
51+
--minify \
52+
--baseURL "${{ steps.pages.outputs.base_url }}/"
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v2
55+
with:
56+
path: ./public
57+
58+
# Deployment job
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v3

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,14 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
# Go vendor
133+
_vendor/
134+
135+
# Hugo Dependencies
136+
resources/
137+
public/
138+
.hugo_build.lock
139+
140+
# MacOS
141+
.DS_Store

0 commit comments

Comments
 (0)