forked from orbikm/mkdocs-ezlinks-plugin
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Taskfile.yml
51 lines (43 loc) · 1.32 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
version: "3"
vars:
package_name: "mkdocs-obsidian-wikilinks"
pyproject_dir: "{{.Taskfile.Dir}}"
tasks:
default:
desc: "Run the full release process"
cmds:
- task: release
clean:
desc: "Clean up old build files"
cmds:
- echo "Cleaning build directories..."
- rm -r -Force {{.pyproject_dir}}/dist {{.pyproject_dir}}/*.egg-info {{.pyproject_dir}}/.pytest_cache
version:
desc: "Run semantic-release to determine and bump the version"
cmds:
- echo "Running semantic-release to bump the version..."
- uv run semantic_release version
build:
desc: "Build the Python package"
cmds:
- echo "Building the package..."
- uv build
publish:
desc: "Publish the package to PyPI"
cmds:
- echo "Publishing {{.package_name}} to PyPI..."
- uv run semantic_release publish
watch:
desc: "Start the Watchdog with custom paths"
vars:
package_path: "mkdocs-obsidian-wikilinks"
mkdocs_path: "../mara-li"
cmds:
- echo "Starting Watchdog for {{.package_path}} with MkDocs at {{.mkdocs_path}}..."
- uv python watch.py {{.package_path}} {{.mkdocs_path}}
release:
desc: "Perform a full release: version bump, build, and publish"
cmds:
- task: clean
- task: version
- task: publish