Skip to content

v1.2.0

v1.2.0 #23

name: Publish to nuget.org
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.x
7.x
8.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore /p:ContinuousIntegrationBuild=true -p:IncludeSymbols=true -p=SymbolPackageFormat=snupkg
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: upload
run: dotnet nuget push ./Akade.IndexedSet/bin/Release/Akade.IndexedSet.*.nupkg --source https://api.nuget.org/v3/index.json --api-key "$NUGET_KEY"
env:
NUGET_KEY: ${{SECRETS.NUGETORGAPIKEY}}