-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
63 lines (53 loc) · 1.43 KB
/
Copy pathtaskfile.yml
File metadata and controls
63 lines (53 loc) · 1.43 KB
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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
#
version: '3'
vars:
RELEASE: artifacts/package
SCRIPTS: scripts
tasks:
clean:
desc: Cleans up working files and any release files
deps: [clean-release]
silent: true
clean-release:
internal: true
desc: Cleans up artifacts dir
cmds:
- rm -rf {{.RELEASE}}
- mkdir -p {{.RELEASE}}
silent: true
release-package:
desc: Creates a release that packages all contents of artifacts/package into a single zip file
env:
SM_RELEASE_DIR: "{{.RELEASE}}"
SM_RELEASE_TYPE: "packageZip"
cmds:
- python {{.SCRIPTS}}/create-release.py
silent: true
release-bundle-zip:
desc: Creates release-bundle then zips files
deps: [zip-bundle, release-bundle]
silent: true
release-bundle:
desc: Creates a release which contains many .tox files
env:
SM_RELEASE_DIR: "{{.RELEASE}}"
SM_RELEASE_TYPE: "toxFiles"
cmds:
- python {{.SCRIPTS}}/create-release.py
silent: true
zip-bundle:
desc: Creates a .zip archive of all .tox files
internal: true
env:
SM_RELEASE_DIR: "{{.RELEASE}}"
cmds:
- python {{.SCRIPTS}}/zip-tox-files.py
silent: true
test-env-vars:
env:
SM_RELEASE_DIR: "{{.RELEASE}}"
SM_RELEASE_TYPE: "zip" # release type can be 'packageZip' or 'toxFiles'
SM_IS_TEST: "TRUE"
cmds:
- python {{.SCRIPTS}}/create-release.py