Merge pull request #157 from devlead/feature/gh-156 #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- develop | |
- hotfix/* | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: Get the sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET SDK 6.0.x - 8.0.x | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
8.0.x | |
- name: Run Cake script | |
uses: cake-build/cake-action@master | |
env: | |
GH_PACKAGES_NUGET_SOURCE: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | |
GH_PACKAGES_NUGET_APIKEY: ${{ secrets.GITHUB_TOKEN }} | |
NUGET_SOURCE: ${{ secrets.NUGET_API_URL }} | |
NUGET_APIKEY: ${{ secrets.NUGET_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
cake-version: tool-manifest | |
target: GitHub-Actions |