Skip to content

Veldrid CI build

Veldrid CI build #202

Workflow file for this run

name: Veldrid CI build
on:
create: # when tags are created
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src
- name: Build
run: dotnet build --no-restore src -c Release
- name: Build Packages
run: dotnet pack src -c Release
- name: Publish tagged release to nuget.org
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push bin\Packages\Release\ppy.*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
- name: Generate GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
bin\Packages\Release\ppy.*.nupkg