Skip to content

Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 (#302) #120

Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 (#302)

Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 (#302) #120

Workflow file for this run

name: Official Build
on:
workflow_dispatch:
push:
branches:
- main
- rel/*
tags:
- v*.*.*
env:
ArtifactsDirectoryName: 'artifacts'
BuildConfiguration: 'Release'
BuildPlatform: 'Any CPU'
ContinuousIntegrationBuild: 'true'
OfficialBuild: 'true'
DotNet6Version: '6.x'
DotNet8Version: '8.x'
jobs:
build:
runs-on: windows-latest
environment: Production
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET ${{ env.DotNet6Version }} and .NET ${{ env.DotNet8Version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ env.DotNet6Version }}
${{ env.DotNet8Version }}
- name: Install .NET ${{ env.DotNet9Version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DotNet9Version }}
dotnet-quality: 'preview'
- name: Build Solution
run: dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}\build.binlog"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: ${{ env.ArtifactsDirectoryName }}
path: ${{ env.ArtifactsDirectoryName }}
- name: Push Packages
run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NuGetApiKey }} ${{ env.ArtifactsDirectoryName }}\**\*.nupkg
if: ${{ startsWith(github.ref, 'refs/tags/v') }}