-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
55 lines (44 loc) · 973 Bytes
/
Taskfile.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
45
46
47
48
49
50
51
52
53
54
55
# yaml-language-server: $schema=https://taskfile.dev/schema.json
---
version: "3"
set:
- pipefail
silent: false
vars:
PORT: 8000
env:
ENV: development
dotenv: [".env", "{{.ENV}}/.env.", "{{.HOME}}/.env"]
tasks:
default:
cmd: task -l
silent: true
install:
desc: Install dependencies
preconditions:
- test -f $(which poetry)
cmds:
- poetry run pip install -U pip
- poetry install --no-interaction --no-ansi --sync --no-root
build:
desc: Build static site
deps:
- install
- clean
cmds:
- poetry run mkdocs build
ghdeploy:
desc: Deploy Github Pages
deps:
- build
cmds:
- poetry run mkdocs gh-deploy --force
serve:
desc: Run development
cmds:
- "echo 'Follow: http://127.0.0.1:{{ .PORT }}'"
- "python3 -m http.server --bind 127.0.0.1 --directory ./site/ {{ .PORT }}"
clean:
desc: Clean all artifacts
cmds:
- rm -rf ./site/*