-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 2.16 KB
/
CD.yml
File metadata and controls
44 lines (39 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Binding Simple CD - Template
# This template is for pure .NET bindings (no XML update) to publish NuGets to Nuget.org.
# Copy this file to your repository as `.github/workflows/CD.yml` and customize the inputs below.
name: CD
on:
workflow_dispatch:
inputs:
skip-assets-publishing:
description: 'Skip assets publishing'
required: false
type: boolean
default: false
jobs:
cd:
if: github.event_name != 'schedule' || github.ref == 'refs/heads/master'
uses: EvergineTeam/evergine-standards/.github/workflows/binding-simple-cd.yml@v2
with:
generator-project: "RenderDocGen/RenderDocGen/RenderDocGen.csproj" # Path to your generator .csproj
generator-name: "RenderDoc" # Name of your generator executable
binding-project: "RenderDocGen/Evergine.Bindings.RenderDoc/Evergine.Bindings.RenderDoc.csproj" # Path to your binding .csproj
target-framework: "net10.0" # Target framework for generator/binding
dotnet-version: "10.x" # .NET SDK version
nuget-version: "6.x" # NuGet CLI version
runtime-identifier: "win-x64" # Runtime identifier (win-x64, linux-x64, etc.)
build-configuration: "Release" # Build configuration (Release, Debug, etc.)
revision: ${{ github.run_number }} # Revision for date-based version (bindings style). Use with bindings.
publish-enabled: ${{ !inputs.skip-assets-publishing }} # Publish NuGets to Nuget.org
enable-email-notifications: true # Enable email notifications on failure
runner-os: windows-latest # OS for the runner (windows-latest, ubuntu-latest, etc.)
secrets:
NUGET_UPLOAD_TOKEN: ${{ secrets.EVERGINE_NUGETORG_TOKEN }}
WAVE_SENDGRID_TOKEN: ${{ secrets.WAVE_SENDGRID_TOKEN }}
EVERGINE_EMAILREPORT_LIST: ${{ secrets.EVERGINE_EMAILREPORT_LIST }}
EVERGINE_EMAIL: ${{ secrets.EVERGINE_EMAIL }}
# Tips:
# - For direct version (add-ons style):
# version: "3.4.22.288-local"
# - For date-based version (bindings style):
# revision: "" # Uses github.run_number or custom logic