Unverified Commit 5f16033e authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Adds if/else into appveyor (#146)

* Adds if/else into appveyor

* Update .appveyor.yml
parent c5ba8919
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,9 +31,10 @@ on_success:
- cd ../
- conda build -q recipe/
- ps:
    if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq "") {
      $tar_glob = conda build recipe --output;
      Write-Host "tar_glob $tar_glob";
      if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq "") {
      if ($env:APPVEYOR_REPO_BRANCH -eq "dev") {
        $anaconda_label = "dev"
      } else {
        $anaconda_label = "main"
@@ -42,3 +43,4 @@ on_success:
      $parameters = '-t', "$env:CONDA_UPLOAD_TOKEN", 'upload', "$tar_glob", '-l',
                    "$anaconda_label", '--force', '--no-progress';
      & cmd /c 'anaconda 2>&1' $parameters;
    };