name: .NET Core CI on: push: paths-ignore: - '.github/*' - '.github/*_TEMPLATE/**' - '*.md' pull_request: paths-ignore: - '.github/*' - '.github/*_TEMPLATE/**' - '*.md' workflow_dispatch: jobs: build: name: .NET on ${{ matrix.os }} (${{ matrix.configuration }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] configuration: [Release, Debug] steps: - uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: '6.0.x' - name: Build run: dotnet publish -c ${{ matrix.configuration }} -o artifacts - name: Upload artifact uses: actions/upload-artifact@v2 if: matrix.configuration == 'Release' with: name: DepotDownloader-${{ runner.os }} path: artifacts if-no-files-found: error