-
Notifications
You must be signed in to change notification settings - Fork 3
/
Taskfile.yml
29 lines (25 loc) · 816 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
version: '3'
tasks:
compile:
desc: Export the notebooks to python modules
cmds:
- nbdev_prepare
bump:
desc: Bump version
cmds:
- nbdev_bump_version
- git add settings.ini sec_downloader/__init__.py
- git commit --amend --no-edit
deploy:
desc: Deploy the changes
cmds:
- nbdev_prepare
- task: ensure-clean-working-tree
- git pull --no-edit
- git push
- nbdev_pypi
ensure-clean-working-tree: # Ensure no changes in the working tree or index, abort if any.
silent: true
internal: true
cmds:
- if git diff --exit-code > /dev/null 2>&1 && git diff --cached --exit-code > /dev/null 2>&1; then :; else echo "Changes detected in the working tree or index. Please commit or stash them before proceeding."; exit 1; fi