alpha
Login
or
Join now
cameron.stream
/
comind
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/just-cameron/comind. Comind, the cognitive layer for the web.
comind.stream/docs/getting-started/
ai
atprotocol
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Create hugo.yml
author
Cameron Pfiffer
committer
GitHub
date
1 year ago
(Mar 30, 2025, 5:05 PM -0700)
commit
da307fa4
da307fa425d90f65d7e38be19fe7c6fa9600de05
parent
beeaef26
beeaef2606387620852a708c3d47c9ce7b0a45d4
+74
1 changed file
Expand all
Collapse all
Unified
Split
.github
workflows
hugo.yml
+74
.github/workflows/hugo.yml
View file
Reviewed
···
1
1
+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2
2
+
name: Deploy Hugo site to Pages
3
3
+
4
4
+
on:
5
5
+
# Runs on pushes targeting the default branch
6
6
+
push:
7
7
+
branches: ["main"]
8
8
+
9
9
+
# Allows you to run this workflow manually from the Actions tab
10
10
+
workflow_dispatch:
11
11
+
12
12
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
13
+
permissions:
14
14
+
contents: read
15
15
+
pages: write
16
16
+
id-token: write
17
17
+
18
18
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
19
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
20
+
concurrency:
21
21
+
group: "pages"
22
22
+
cancel-in-progress: false
23
23
+
24
24
+
# Default to bash
25
25
+
defaults:
26
26
+
run:
27
27
+
shell: bash
28
28
+
29
29
+
jobs:
30
30
+
# Build job
31
31
+
build:
32
32
+
runs-on: ubuntu-latest
33
33
+
env:
34
34
+
HUGO_VERSION: 0.128.0
35
35
+
steps:
36
36
+
- name: Install Hugo CLI
37
37
+
run: |
38
38
+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39
39
+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40
40
+
- name: Install Dart Sass
41
41
+
run: sudo snap install dart-sass
42
42
+
- name: Checkout
43
43
+
uses: actions/checkout@v4
44
44
+
with:
45
45
+
submodules: recursive
46
46
+
- name: Setup Pages
47
47
+
id: pages
48
48
+
uses: actions/configure-pages@v5
49
49
+
- name: Install Node.js dependencies
50
50
+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51
51
+
- name: Build with Hugo
52
52
+
env:
53
53
+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
54
54
+
HUGO_ENVIRONMENT: production
55
55
+
run: |
56
56
+
hugo \
57
57
+
--minify \
58
58
+
--baseURL "${{ steps.pages.outputs.base_url }}/"
59
59
+
- name: Upload artifact
60
60
+
uses: actions/upload-pages-artifact@v3
61
61
+
with:
62
62
+
path: ./public
63
63
+
64
64
+
# Deployment job
65
65
+
deploy:
66
66
+
environment:
67
67
+
name: github-pages
68
68
+
url: ${{ steps.deployment.outputs.page_url }}
69
69
+
runs-on: ubuntu-latest
70
70
+
needs: build
71
71
+
steps:
72
72
+
- name: Deploy to GitHub Pages
73
73
+
id: deployment
74
74
+
uses: actions/deploy-pages@v4