-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.11 KB
/
gh-pages.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
43
44
name: Publish site on GitHub Pages
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Clone current repo
uses: actions/checkout@v4
with:
submodules: true
- name: Install emacs
run: |
DEBIAN_FRONTEND=noninteractive sudo apt install --yes emacs-nox
- name: Setup Timezone
run: |
sudo timedatectl set-timezone Europe/Madrid
sudo dpkg-reconfigure --frontend noninteractive tzdata
- name: Render Markdown content
run: |
emacs content.org --batch --load=export.el --funcall=org-hugo-export-all-wim-to-md
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.133.1'
# extended: true
- name: Build static site with hugo
run: hugo --minify
- name: Publish static site on gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
force_orphan: true