Skip to content

Initial Commit

Initial Commit #1

Workflow file for this run

name: Publish to NuGet
on:
push:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # NBGV needs full history to compute git height
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Pack
run: >
dotnet pack src/Utf8StringInterpolation.Analyzers/Utf8StringInterpolation.Analyzers.csproj
--no-build
--configuration Release
--output ./nupkg
- name: Publish to NuGet
run: >
dotnet nuget push ./nupkg/*.nupkg
--api-key ${{ secrets.NUGET_API_KEY }}
--source https://api.nuget.org/v3/index.json
--skip-duplicate