-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 984 Bytes
/
HugoBuild.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
name: HugoBuild
on:
push:
Branches:
- source
permissions: # added using https://github.com/step-security/secure-workflows
contents: write
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: true # To get theme
fetch-depth: 0
- name: Setup hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
with:
hugo-version: "0.91.2"
extended: true # Theme needs Hugo Extended
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3.9.1
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
cname: 'https://chris.swanz.net'