Skip to content

v0.2.0-charlie

v0.2.0-charlie #4

Workflow file for this run

#
# Publish releases to Nuget
#
name: Publish new release
on:
release:
types: [ published ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
name: Publish release to Nuget
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore "src/Logto.WebApi.Sdk"
- name: Build
run: dotnet build "src/Logto.WebApi.Sdk" --configuration Release --no-restore
- name: Pack
run: dotnet pack "src/Logto.WebApi.Sdk" -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --no-build --output nuget
- name: Publish NuGet packages to NuGet
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source "nuget.org"