insee_number_translator/tasks.py

10 lines
209 B
Python
Raw Normal View History

2021-08-06 16:07:55 +02:00
from invoke import Context, task
@task
def tag(context, tag):
"""Create & push a git tag"""
context: Context
context.run(f"git tag -a {tag} -m '{tag}'")
context.run("git push --follow-tags")