(self, project_name: str)
| 10 | self.netlify = NetlifyPy(access_token=api_key) |
| 11 | |
| 12 | def deploy(self, project_name: str): |
| 13 | project_path = ProjectManager().get_project_path(project_name) |
| 14 | |
| 15 | site = self.netlify.site.create_site() |
| 16 | |
| 17 | print("===" * 10) |
| 18 | print(site) |
| 19 | |
| 20 | site_id = site["id"] |
| 21 | |
| 22 | deploy = self.netlify.deploys.deploy_site(site_id, project_path) |
| 23 | |
| 24 | print("===" * 10) |
| 25 | print(deploy) |
| 26 | |
| 27 | return deploy |
| 28 |
no test coverage detected