How to use the mike.commands.deploy function in mike

To help you get started, we’ve selected a few mike examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jimporter / mike / test / unit / test_commands.py View on Github external
def _deploy(self, branch='gh-pages'):
        commands.deploy(self.stage, '1.0', branch=branch)
github jimporter / mike / test / unit / test_commands.py View on Github external
def _deploy(self, branch='gh-pages'):
        commands.deploy(self.stage, '1.0', aliases=['latest'], branch=branch)
github jimporter / mike / test / unit / test_commands.py View on Github external
def _deploy(self, branch='gh-pages'):
        commands.deploy(self.stage, '1.0', aliases=['stable'], branch=branch)
        commands.deploy(self.stage, '2.0', branch=branch)
github jimporter / mike / test / unit / test_commands.py View on Github external
def _deploy(self, branch='gh-pages'):
        commands.deploy(self.stage, '1.0', branch=branch)
github jimporter / mike / test / unit / test_commands.py View on Github external
def test_default(self):
        commands.deploy(self.stage, '1.0')
        check_call_silent(['git', 'checkout', 'gh-pages'])
        self._test_deploy()