diff --git a/duties.py b/duties.py index d0c3187..1c8faa0 100644 --- a/duties.py +++ b/duties.py @@ -125,19 +125,10 @@ def docs_deploy(ctx: Context) -> None: with material_insiders() as insiders: if not insiders: ctx.run(lambda: False, title="Not deploying docs without Material for MkDocs Insiders!") - origin = ctx.run("git config --get remote.origin.url", silent=True, allow_overrides=False) - if "pawamoy-insiders/markdown-exec" in origin: - ctx.run("git remote add upstream git@github.com:pawamoy/markdown-exec", silent=True, nofail=True) - ctx.run( - tools.mkdocs.gh_deploy(remote_name="upstream", force=True), - title="Deploying documentation", - ) - else: - ctx.run( - lambda: False, - title="Not deploying docs from public repository (do that from insiders instead!)", - nofail=True, - ) + ctx.run( + tools.mkdocs.gh_deploy(), + title="Deploying documentation", + ) @duty