Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Templates for Nitrocid KS 0.1.0 Beta 3 #3

Templates for Nitrocid KS 0.1.0 Beta 3

Templates for Nitrocid KS 0.1.0 Beta 3 #3

Workflow file for this run

name: NuGet Gallery Push
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: dotnet pack templatepack.sln /p:Configuration=Release
- name: NuGet Preparation
run: nuget setApiKey ${{ secrets.NUGET_APIKEY }}
- name: Package Publication (Boot)
run: |
$path = "working\bin\Release"
$FileName = Get-ChildItem -Path $path -Name -Filter "KS.Templates.*"
nuget push "$path\$FileName" -source "nuget.org" -SkipDuplicate