-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yml
57 lines (39 loc) · 1.02 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
version: "3"
#
# sub namespace: https://taskfile.dev/#/usage?id=including-other-taskfiles
#
includes:
rocket:
taskfile: packages/rocket/rocket-0.5.0-rc.2/Taskfile.yml
dir: packages/rocket/rocket-0.5.0-rc.2/
#
# global vars: https://taskfile.dev/#/usage?id=variables
#
vars:
VAR1: "some-var"
# global env:
env:
ENV1: testing
# env file:
dotenv:
- .env
################################################################################################
tasks:
default:
cmds:
- task: install
- task: run
init:
cmds:
- cp .env.local .env
install:
cmds:
- cd packages/axum/axum-axum-v0.4.5/; cargo update
run:hello:
cmds:
- cd packages/axum/axum-axum-v0.4.5/examples/hello-world/; cargo run
push:
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
############################################################################