Skip to content

Release script #1

Description

@harupong

For ytpodgen, I want a release script that does:

  1. use poetry version <patch/minor/major> to edit pyproject.toml
  2. git commit that change with the new version number
  3. create an annotated git tag with the new version number
  4. build and publish to PyPI

Once all the changes are commited for the next version,

poetry version <patch/minor/major>
git add pyproject.toml && git commit -m $(poetry version -s)
git tag -a -m "$(git log --pretty="%h %s" $(git describe --tags --abbrev=0)..HEAD)" $(poetry version -s)
poetry publish --build -u ${PYPI_USERNAME} -p ${PYPI_SECRET}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions