Merge pull request #38 from SubstrateGaming/monthly_updates_11_24 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish KILT.NET | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '*.md' | |
jobs: | |
build: | |
name: build & test & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
## | |
# Setup | |
# Setup multiple .NET versions so we can build against all referenced .NET versions. | |
## | |
- name: Setup .NET 6.0.x | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
## | |
# Dependencies | |
# Restore the project and its dependencies. | |
## | |
- name: Install dependencies | |
run: dotnet restore Substrate.KILT.NET | |
## | |
# Dependencies | |
# Restore the project and its dependencies. | |
## | |
- name: Build KILT .NET | |
run: | | |
dotnet build Substrate.KILT.NET --configuration Release | |
## | |
# Publishing | |
# Publish all NuGet packages from Substrate Chains .NET | |
## | |
- name: Publish Substrate KILT .NET API Extension | |
id: publish_nuget | |
uses: alirezanet/publish-nuget@v3.0.4 | |
with: | |
# Filepath of the project to be packaged, relative to root of repository | |
PROJECT_FILE_PATH: Substrate.KILT.NET/Substrate.KILT.NET.NetApiExt/Substrate.KILT.NET.NetApiExt.csproj | |
# NuGet package id, used for version detection & defaults to project name | |
PACKAGE_NAME: Substrate.KILT.NET.Extension | |
# API key to authenticate with NuGet server | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |