-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 786 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 786 Bytes
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
all: deploy
sync:
rsync -av ../hugo_academic/content/authors/laurent-u-perrinet content/authors
rsync -av ../hugo_academic/content/authors/frederic-y-chavane content/authors
rsync -av ../hugo_academic/content/authors/hugo-ladret content/authors
rsync -av ../hugo_academic/content/authors/anna-montagnini content/authors
rsync -av ../hugo_academic/content/authors/emmanuel-dauce content/authors
pages:
git pull ; hugo
push: pages
git add . ; git commit -m "Build website" -a ; git push origin main
deploy: push
cd public; git checkout main ; git pull ; git add . ; git commit -m "Build website" -a ; git push origin main
clean:
# rm -fr $(TMPDIR)/hugo_cache
hugo mod clean --all
hugo mod tidy
hugo mod get -u ./...
hugo --gc
hugo --cleanDestinationDir
hugo --debug