-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yaml
38 lines (31 loc) · 867 Bytes
/
Taskfile.yaml
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
# https://taskfile.dev
version: "3"
vars:
GREETING: Hello, World!
tasks:
serve:
cmds:
- pelican --listen
dev:
cmds:
- rm -rf "./output/*"
- pelican -r "./content/" -o "./output/" -s "./pelicanconf.py"
build:
cmds:
- echo "Remove existing output"
- rm -rf "./output/*"
- echo "Building new output"
- pelican "./content/" -o "./output/" -s "./pelicanconf.py"
silent: true
publish:
deps: [build]
cmds:
- ghp-import output
- git push [email protected]:drorata/drorata.github.io.git gh-pages:master
publish_https:
# Same as the publish task,
# only using HTTPS so the token could be used when GitHub Actions kick in.
deps: [build]
cmds:
- ghp-import output
- git push --force https://[email protected]/drorata/drorata.github.io.git gh-pages:master