-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
100 lines (80 loc) · 1.94 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "3"
#
# sub namespace: https://taskfile.dev/#/usage?id=including-other-taskfiles
#
includes:
demo-ffi:
aliases: [ "df" ]
taskfile: ./packages/demo-ffi/
dir: ./packages/demo-ffi/
optional: true
uuid-ffi:
aliases: [ "uf" ]
taskfile: ./packages/uuid-ffi/
dir: ./packages/uuid-ffi/
optional: true
uuid-mojo:
aliases: [ "um" ]
taskfile: ./packages/uuid-mojo/
dir: ./packages/uuid-mojo/
optional: true
disc-ffi:
aliases: [ "disc:f" ]
taskfile: ./packages/disc-ffi/
dir: ./packages/disc-ffi/
optional: true
#
# global vars: https://taskfile.dev/#/usage?id=variables
#
vars:
VAR1: "some-var"
# global env:
env:
ENV1: testing
WORKSPACE: "packages/"
# env file:
dotenv:
- .env
################################################################################################
tasks:
pixi:
cmds:
- pixi {{.CLI_ARGS}}
docs:
cmds:
- pixi i -e=dev
- pixi run -e=dev mkdocs serve --open --watch=docs --watch=mkdocs.yml --dev-addr=localhost:5005
docs:deploy:
aliases: [ "docs:d" ]
cmds:
- pixi i -e=dev
- pixi run -e=dev mkdocs gh-deploy # build and create gh-pages branch
- git push origin gh-pages:gh-pages --force # push to public repo
dev:
cmds:
- rustup toolchain install nightly
- rustup toolchain list
###########################################################################
quick:
aliases: [ "q" ]
cmds:
- task: commit
- task: commit
- git status
- task: push
ignore_error: true
commit:
aliases: [ "c" ]
cmds:
- git add .
- git commit -m "update" --no-verify
ignore_error: true
pull:
aliases: [ "pl" ]
cmds:
- git pull
push:
aliases: [ "p" ]
cmds:
- git push origin main --tags
- repo_url=`git remote -v | grep push | awk -F ":" '{print $2}' | awk -F ".git" '{print "https://github.com/"$1}'`; open $repo_url