Projects STRLCPY LIEF Commits 16962f2f
🤬
  • ■ ■ ■ ■ ■ ■
    .github/deploy.py
    skipped 260 lines
    261 261   
    262 262   def deploy(self, directories: list[str]):
    263 263   s3dir = None
     264 + tag = None
    264 265   if GithubDeploy.is_tagged():
    265 266   s3dir = GithubDeploy.tag_name()
     267 + tag = s3dir if len(s3dir) > 0 else None
     268 + logger.info("Deployment for tag: %s", tag)
    266 269   else:
    267 270   branch = GithubDeploy.branch()
    268 271   if branch is None:
    skipped 6 lines
    275 278   s3dir = self._default_dir
    276 279   else:
    277 280   s3dir = branch.replace("/", "-").replace("_", "-")
     281 + 
     282 + if not self.should_be_deployed(branch):
     283 + logger.info("Skipping deployment for branch: %s", branch)
     284 + return
     285 + 
    278 286   if s3dir is None:
    279 287   logger.error("Target directory is not set")
    280 288   sys.exit(1)
    281  - 
    282  - if not self.should_be_deployed(branch):
    283  - logger.info("Skipping deployment for branch: %s", branch)
    284  - return
    285 289   
    286 290   logger.info("s3dir: %s", s3dir)
    287 291   self.s3_manager.change_dir(s3dir)
    skipped 28 lines
Please wait...
Page is in error, reload to recover