Skip to content

Publish package to PyPI on push tags #485

@tetsuok

Description

@tetsuok

Currently, a GitHub action to push ExplainaBoard to PyPI is triggered on push commit to main if some change is maded in version.py (regardless of version change). This approach is not reliable because it is possible to add comments or more code to version.py. In fact, #415 added docstrng to version.py which accidentally triggered the CI, and CI failed because the version didn't change.

It is better to configure the CI not to get triggered accidentally. For example, it is possible to trigger the CI on pushing a tag (e.g., v0.12) to this repository rather than on pushing a commit to main. (NOTE: Whether to create release branches or not is a separate topic). Process to bump the version in version.py, and push tags need to be automated to avoid mistakes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions