Skip to content

Commit

Permalink
Move CSS for templates to be output by Statiq
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 5, 2024
1 parent a9da2be commit d892376
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ jobs:
/p:Configuration=${{ inputs.dotnet-configuration }}
/p:TargetFrameworks=${{ inputs.dotnet-target-framework }}
- name: Generate template files
run: >
dotnet run --project TemplateGenerator
--configuration ${{ inputs.dotnet-configuration }}
--framework ${{ inputs.dotnet-target-framework }}
--no-build -- --nocache
- name: Dump version
run: dotnet gitversion

Expand Down
7 changes: 7 additions & 0 deletions CollectArtifacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ $Arguments = @{
Recurse = $True
}
Copy-Item @Arguments

$Arguments = @{
Path = 'TemplateGenerator\output\*'
Destination = Join-Path $OutputDir 'template'
Recurse = $True
}
Copy-Item @Arguments
4 changes: 4 additions & 0 deletions TemplateGenerator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Statiq folders
cache/
temp/
output/
2 changes: 1 addition & 1 deletion TemplateGenerator/TemplateGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ItemGroup>

<ItemGroup>
<Content Include="Templates\style.css" />
<Content Include="input\style.css" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.

0 comments on commit d892376

Please sign in to comment.