Skip to content

Commit 1466f34

Browse files
authored
Merge pull request #32 from jupyter-server/self-tag
Use Releaser to Tag Itself
2 parents 2fa6096 + 3b500ad commit 1466f34

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/scripts/bump_tag.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -eux
2+
3+
# Update the v1 tag for GitHub Actions consumers
4+
if [[ ${RH_DRY_RUN:=true} != 'true' ]]; then
5+
git tag -f -a v1 -m "Github Action release"
6+
git push origin -f --tags
7+
fi

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ tag_template = "v{new_version}"
1818

1919
[[tool.tbump.file]]
2020
src = "jupyter_releaser/__init__.py"
21+
22+
[tool.jupyter-releaser.hooks]
23+
after-draft-release = "bash ./.github/scripts/bump_tag.sh"

0 commit comments

Comments
 (0)