tag:help.appveyor.com,2012-11-13:/discussions/problems/13186-except-gh-pages-branchAppVeyor: Discussion 2018-08-25T02:27:40Ztag:help.appveyor.com,2012-11-13:Comment/449495822018-03-21T23:24:14Z2018-03-21T23:24:14ZExcept `gh-pages` branch<div><p>No need to apologize, this part is really complicated :) <code>gh-pages</code> excluded if you have branch filtering. But in your configuration there are multiple configuration, and not branch filtering. UI settings from screenshot does not apply as YAML takes over UI.</p>
<p>Please try this YAML. It has default config for all branches, special one for master and <code>gh-pages</code> are filtered out.</p>
<pre>
<code>version: 1.0.{build}
image: Visual Studio 2017
branches:
except:
- gh-pages
before_build:
- pwsh: dotnet --version
build_script:
- pwsh: dotnet build ./src/CityMap.csproj -c Release
for:
-
branches:
only:
- master
build_script:
- pwsh: dotnet build ./src/CityMap.csproj -c Release
- pwsh: dotnet publish ./src/CityMap.csproj -c Release -r win10-x64
- pwsh: dotnet publish ./src/CityMap.csproj -c Release -r linux-x64
- pwsh: dotnet publish ./src/CityMap.csproj -c Release -r osx-x64
artifacts:
- path: 'src\bin\Release\netcoreapp2.0\win10-x64\publish'
name: win10-x64
- path: 'src\bin\Release\netcoreapp2.0\linux-x64\publish'
name: linux-x64
- path: 'src\bin\Release\netcoreapp2.0\osx-x64\publish'
name: osx-x64</code>
</pre></div>Ilya Finkelshteyn