From 3b500ad47efcd908b926f91c4ebee8c891f6820e Mon Sep 17 00:00:00 2001 From: "Afshin T. Darian" Date: Mon, 24 May 2021 13:58:14 +0100 Subject: [PATCH] Use Releaser to Tag Itself --- .github/scripts/bump_tag.sh | 7 +++++++ pyproject.toml | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 .github/scripts/bump_tag.sh diff --git a/.github/scripts/bump_tag.sh b/.github/scripts/bump_tag.sh new file mode 100644 index 00000000..44066935 --- /dev/null +++ b/.github/scripts/bump_tag.sh @@ -0,0 +1,7 @@ +set -eux + +# Update the v1 tag for GitHub Actions consumers +if [[ ${RH_DRY_RUN:=true} != 'true' ]]; then + git tag -f -a v1 -m "Github Action release" + git push origin -f --tags +fi diff --git a/pyproject.toml b/pyproject.toml index 7cead416..373abed4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,3 +18,6 @@ tag_template = "v{new_version}" [[tool.tbump.file]] src = "jupyter_releaser/__init__.py" + +[tool.jupyter-releaser.hooks] +after-draft-release = "bash ./.github/scripts/bump_tag.sh"