Skip to content

Commit

Permalink
More justfile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Dec 6, 2024
1 parent 7cb7855 commit b00a580
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ uv-tool := "uv tool run"
git add uv.lock
git commit -m "Bump version"
git push

# Create a new GitHub release - this requires Python 3.11 or newer, and the GitHub CLI must be installed and configured
version := `echo "from tomllib import load; print(load(open('pyproject.toml', 'rb'))['project']['version'])" | uv run - `

[confirm("Are you sure you want to create a new release?\nThis will create a new GitHub release and will build and deploy a new version to PyPi.\nYou should have already updated the version number using one of the bump recipes.\nTo check the version number, run just version.\n\nCreate release?")]
@release:
echo "Creating a new release for v{{version}}"
git pull
gh release create "v{{version}}" --generate-notes

@version:
git pull
echo {{version}}

0 comments on commit b00a580

Please sign in to comment.