Skip to content

Commit

Permalink
Setup hugo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhogan8 committed Jun 4, 2024
1 parent 74f640a commit d89e552
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Hugo

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true

- name: Install Dart Sass
run: sudo snap install dart-sass

- name: Build
run: ./build.sh
env:
CF_PAGES_URL: /
DARTSASS_VERSION: 1.56.2

6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -eu

hugo --gc --minify -b "$CF_PAGES_URL"

0 comments on commit d89e552

Please sign in to comment.