-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1022 Bytes
/
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
38
39
40
41
42
43
name: Build
on:
push:
branches:
- main
env:
HUGO_VERSION: 0.74.3
EMACS_VERSION: 27.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install org-roam dependencies
run: |
sudo apt-get install sqlite3
- name: Install emacs
uses: purcell/setup-emacs@master
with:
version: ${{ env.EMACS_VERSION }}
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Create static folder
run: mkdir -p static
- name: Convert org files to hugo
run: make org2hugo
- name: Generate site
run: make hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: site