forked from pine64/website
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 879 Bytes
/
hugo-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: GitHub Pages
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
build-site:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true # Incase we subrepo stuff in
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Install deps
run: sudo apt-get update && sudo apt-get install -y asciidoctor
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.119.0"
extended: true
- name: Build
run: hugo --minify
- name: Upload output artifacts
uses: actions/upload-artifact@v4
with:
name: website-build.zip
path: ./public
if-no-files-found: error