# Umbraco Magical Build Pipeline
# Worry less about build stuff and code more...
#
# 1. Ensure Secret Store has 'UMB_API_KEY' for pushing the ZIP package to our.umbraco.com
name: Magical Build
on:
  push:
    branches:
      - master                          # Push events on master branch.
jobs:
  unicorn-dust:                         # Name of Job
    runs-on: windows-latest             # Make sure we run this on a Windows VM/image
    env:
      PKG_VERSION: '2.0.0'              # UPDATE ME
    steps:
      - uses: actions/checkout@master   # Go & fetch the REPO & do a git checkout
      - uses: actions/setup-dotnet@v1   # Downloads & adds dotnet to PATH
        with:
          dotnet-version: '2.2.103'     # SDK Version to use
      - name: dotnet msbuild               # Build the project
        working-directory: './src'
        run: dotnet msbuild  /p:Configuration=Release
      - name: dotnet vstests               # Runs tests
        working-directory: './src'
        run: dotnet vstest Our.Umbraco.Nexu.Web.Tests\bin\Release\Our.Umbraco.Nexu.Web.Tests.dll Our.Umbraco.Nexu.Core.Tests\bin\Release\Our.Umbraco.Nexu.Core.Tests.dll
      

# Umbraco Magical Build Pipeline
# Worry less about build stuff and code more...
#
# 1. Ensure Secret Store has 'UMB_API_KEY' for pushing the ZIP package to our.umbraco.com
name: Magical Build
on:
  push:
    branches:
      - develop                          # Push events on master branch.
jobs:
  unicorn-dust:                         # Name of Job
    runs-on: windows-latest             # Make sure we run this on a Windows VM/image
    env:
      PKG_VERSION: '2.0.0'              # UPDATE ME
    steps:
      - uses: actions/checkout@master   # Go & fetch the REPO & do a git checkout
      - uses: actions/setup-dotnet@v1   # Downloads & adds dotnet to PATH
        with:
          dotnet-version: '2.2.103'     # SDK Version to use
      - name: dotnet msbuild               # Build the project
        working-directory: './src'
        run: dotnet msbuild  /p:Configuration=Release
      - name: dotnet vstests               # Runs tests
        working-directory: './src'
        run: dotnet vstest Our.Umbraco.Nexu.Web.Tests\bin\Release\Our.Umbraco.Nexu.Web.Tests.dll Our.Umbraco.Nexu.Core.Tests\bin\Release\Our.Umbraco.Nexu.Core.Tests.dll
      

Fix it so it works on pushes to develop
Fix it so it works on pushes to develop
