[doit] rename dodo.py to do.py and make it executable

This commit is contained in:
umarcor 2021-09-18 05:39:07 +02:00
parent daff79af18
commit 5f9bc45c5f
2 changed files with 10 additions and 2 deletions

View file

@ -97,4 +97,4 @@ jobs:
run: pip install doit
- name: '🚀 Deploy to GitHub-Pages'
run: doit DeployToGitHubPages "update ${{ github.sha }}"
run: ./do.py DeployToGitHubPages "update ${{ github.sha }}"

10
dodo.py → do.py Normal file → Executable file
View file

@ -1,10 +1,14 @@
#!/usr/bin/env python3
# doit
from sys import executable
from sys import executable, argv as sys_argv, exit as sys_exit
from os import environ
from pathlib import Path
from doit.action import CmdAction
from doit.cmd_base import ModuleTaskLoader
from doit.doit_cmd import DoitMain
DOIT_CONFIG = {"verbosity": 2, "action_string_formatting": "both"}
@ -30,3 +34,7 @@ def task_DeployToGitHubPages():
"doc": "Create a clean branch in subdir 'public' and push to branch 'gh-pages'",
"pos_arg": "posargs",
}
if __name__ == '__main__':
sys_exit(DoitMain(ModuleTaskLoader(globals())).run(sys_argv[1:]))