Skip to content

Commit

Permalink
add task release command
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Apr 28, 2024
1 parent 578ecd4 commit c383ca6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ tasks:
desc: "run pytest (pass args after '--')"
cmds:
- poetry run pytest {{.CLI_ARGS}}

release:
desc: "bump version, create tag and release, publish to PYPI"
cmds:
- rm -rf ./dist
- poetry version {{.CLI_ARGS}}
- git add pyproject.toml
- git commit -m "bump version to {{.CLI_ARGS}}"
- poetry build
- twine upload dist/*
- git tag {{.CLI_ARGS}}
- git push
- git push --tags
- gh release create --generate-notes {{.CLI_ARGS}}
- gh release upload {{.CLI_ARGS}} ./dist/*

0 comments on commit c383ca6

Please sign in to comment.