Skip to content

Updated API Version to 255000 #14

Updated API Version to 255000

Updated API Version to 255000 #14

name: Publish NuGet package
on:
push:
tags:
- 'v*'
- 'API*'
workflow_dispatch:
env:
MSBuildEnableWorkloadResolver: false
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
jobs:
deploy:
runs-on: windows-latest
name: Deploying NuGet package
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Install python packages
working-directory: ${{github.workspace}}
run: python -m pip install -r ./BuildTools/.NET/requirements.txt
- name: Build and run
working-directory: ${{github.workspace}}
run: python ./BuildTools/.NET/dotnet-build-package.py -c Release -s ./BuildTools/.NET/dotnet-build-settings.json -d ./ --dotnet-publish
- name: Publish NuGet package
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_AUTH_TOKEN}} -s ${{env.NUGET_SOURCE_URL}}
working-directory: ${{github.workspace}}/build/.NET/Graphics/GraphicsEngine.NET/bin/Release