-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (42 loc) · 2.15 KB
/
CD.yml
File metadata and controls
47 lines (42 loc) · 2.15 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
45
46
47
# Binding from XML CD - Template
# This template is for pure .NET bindings with 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
schedule:
- cron: '30 1 1 * *' # Monthly update on day 1 at 01:30
jobs:
cd:
if: github.event_name != 'schedule' || github.ref == 'refs/heads/master'
uses: EvergineTeam/evergine-standards/.github/workflows/binding-xml-cd.yml@v2
with:
xml-url: "https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/main/xml/vk.xml"
xml-path: "KhronosRegistry/vk.xml"
generator-project: "VulkanGen/VulkanGen/VulkanGen.csproj" # Path to your generator .csproj
generator-name: "Vulkan" # Name of your generator executable
binding-project: "VulkanGen/Evergine.Bindings.Vulkan/Evergine.Bindings.Vulkan.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: "" # 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 }}
enable-email-notifications: true
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