-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
36 lines (28 loc) · 664 Bytes
/
justfile
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
# Define source directory
BLOG_SRC := 'content-org'
BLOG_BUNDLE := 'site.tar.gz'
# Define source files using wildcard
SOURCES := `echo {{ BLOG_SRC }}/*.org`
default:
just --list
# Generate the Markdown files
build: clean
emacs $(pwd) --batch --load export.el
# Publish content
public: build
hugo
# Run Hugo server with drafts
run: build
hugo server --buildDrafts --buildFuture
# Build for CI
ci-build: clean public
# Removes org backups
remove-org:
#!/usr/bin/env bash
find . -iname "#*.org#" | xargs rm -r
echo "Finished!"
# Cleans the current environment
clean: remove-org
rm -rf content
rm -rf public
rm -rf {{ BLOG_BUNDLE }}