-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.01 KB
/
ci.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
38
39
40
41
42
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.61.0'
extended: true
- name: Build
run: hugo --minify
- name: Add CNAME
run: "echo \"cyclofix.osm.be\" | sudo tee -a \"/home/runner/work/cyclofix-website/cyclofix-website/public/CNAME\""
shell: bash
- name: Copy .gitmodules config file
run: "sudo cp .gitmodules /home/runner/work/cyclofix-website/cyclofix-website/public/"
shell: bash
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: public
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SQUASH_HISTORY: true