Skip to content

Upgrading Microsoft.CodeAnalysis.* package one small step. Microsoft.… #18

Upgrading Microsoft.CodeAnalysis.* package one small step. Microsoft.…

Upgrading Microsoft.CodeAnalysis.* package one small step. Microsoft.… #18

Workflow file for this run

name: .NET
on:
push:
branches: [ "main" ]
workflow_dispatch:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release "-p:Version=1.0.${{ github.run_number }}" "-p:PackageVersion=1.0.${{ github.run_number }}"
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Push to nuget.org
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json