src/Robo/Commands/Deploy/DeployCommand.php
protected function deployToTag($options) {
    $this->tagName = $this->getTagName($options);

    // If we are building a tag, then we assume that we will NOT be pushing the
    // build branch from which the tag is created. However, we must still have a
    // local branch from which to cut the tag, so we create a temporary one.
    $this->branchName = $this->getDefaultBranchName() . '-temp';
    $this->prepareDir();
    $this->addGitRemotes();
    $this->checkoutLocalDeployBranch();
    $this->build();
    $this->commit();
    $this->cutTag('build');

    // Check the deploy.tag_source config value and also tag the source repo if
    // it is set to TRUE (the default).
    if ($this->tagSource) {
      $this->cutTag('source');
    }

    $this->push($this->tagName, $options);
  }
protected function deployToTag($options) {
    $this->tagName = $this->getTagName($options);

    // If we are building a tag, then we assume that we will NOT be pushing the
    // build branch from which the tag is created. However, we must still have a
    // local branch from which to cut the tag, so we create a temporary one.
    $this->branchName = $this->getDefaultBranchName() . '-temp';
    $this->prepareDir();
    $this->addGitRemotes();
    $this->checkoutLocalDeployBranch();
    $this->build();
    $this->commit();
    $this->cutTag('build');

    // Check the deploy.tag_source config value and also tag the source repo if
    // it is set to TRUE (the default).
    if ($this->tagSource) {
      $this->cutTag('source');
    }

    $this->push($this->tagName, $options);
  }
protected function deployToTag ( $ options ) { $ this -> tagName = $ this -> getTagName ( $ options ) ; // If we are building a tag, then we assume that we will NOT be pushing the // build branch from which the tag is created. However, we must still have a // local branch from which to cut the tag, so we create a temporary one. $ this -> branchName = $ this -> getDefaultBranchName ( ) . '-temp' ; $ this -> prepareDir ( ) ; $ this -> addGitRemotes ( ) ; $ this -> checkoutLocalDeployBranch ( ) ; $ this -> build ( ) ; $ this -> commit ( ) ; $ this -> cutTag ( 'build' ) ; // Check the deploy.tag_source config value and also tag the source repo if // it is set to TRUE (the default). if ( $ this -> tagSource ) { $ this -> cutTag ( 'source' ) ; } $ this -> push ( $ this -> tagName , $ options ) ; }
Creates artifact, cuts new tag, and pushes.
Creates artifact cuts new tag and pushes .