Skip to content

DXCompilerLibrary: added missing header guard; DeviceContextBase: fix… #16

DXCompilerLibrary: added missing header guard; DeviceContextBase: fix…

DXCompilerLibrary: added missing header guard; DeviceContextBase: fix… #16

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