Skip to content

--clean is dangerous when deploy branch is not isolated #491

@preaction

Description

@preaction

If the deploy branch is the same as the current branch, --clean will destroy:

  • All markdown files
  • All templates
  • Anything that does not result in a page in the deployed site.

We should disallow using --clean if we are on the branch that is being deployed to, with a message explaining why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions