build/ci: create intermediate dir before Sass stamp Touch; allow manual CI dispatch

- CompileSass runs before the compiler creates obj/<cfg>/net10.0, so Touch sass.stamp
  failed on clean Release publishes (MSB3371). MakeDir fixes it for all branches/pipelines.
- Add workflow_dispatch so CI can be run manually on any branch via 'gh workflow run'.
This commit is contained in:
Atanas Korchev
2026-06-25 13:29:50 +03:00
parent dab925cc32
commit 8f94d051cb
2 changed files with 3 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:

View File

@@ -70,6 +70,8 @@
<Target Name="CompileSass" BeforeTargets="MoveCss" Condition="'$(TargetFramework)' == 'net10.0'"
Inputs="@(SassFile)" Outputs="$(IntermediateOutputPath)sass.stamp">
<!-- The target runs before the compiler creates the intermediate dir, so the Touch below fails on a clean build. -->
<MakeDir Directories="$(IntermediateOutputPath)" />
<SassCompile InputFiles="@(SassFile)" OutputStyle="compressed" />
<Touch Files="$(IntermediateOutputPath)sass.stamp" AlwaysCreate="true" />
</Target>