Skip to content

Commit

Permalink
Move to .NET 8 and use latest SSG commands
Browse files Browse the repository at this point in the history
  • Loading branch information
CamiloTerevinto committed Nov 17, 2023
1 parent 001bd18 commit 0551d00
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Install the ssg tool
run: dotnet tool install terevintosoftware.staticsitegenerator.tool --global
- name: Build
run: dotnet build ./src -c Release

- name: Run the ssg tool
run: ssg --project ${GITHUB_WORKSPACE}/src/TerevintoSoftware.StaticSiteGenerator.Demo --output ${GITHUB_WORKSPACE}/out --route-casing KebabCase --use-localization true --assembly bin/Release/net6.0/TerevintoSoftware.StaticSiteGenerator.Demo.dll
run: ssg generate ./src/TerevintoSoftware.StaticSiteGenerator.Demo -o ./out --route-casing KebabCase --use-localization true

- name: Use Node.js 16.x
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Demo repository for [TerevintoSoftware.StaticSiteGenerator](https://github.com/CamiloTerevinto/TerevintoSoftware.StaticSiteGenerator).

This is intentionally empty. Please take a look at [the website generated by this repository](https://ctssgdemo.z16.web.core.windows.net/index.html).
This is intentionally empty. Please take a look at [the website generated by this repository](https://www.staticsitegenerator.net/).
1 change: 1 addition & 0 deletions src/TerevintoSoftware.StaticSiteGenerator.Demo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9E1E8E85-CD67-445B-8C34-D986202F5C46}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\dotnet.yml = ..\.github\workflows\dotnet.yml
..\README.md = ..\README.md
EndProjectSection
EndProject
Global
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
The following options are supported by SSG.NET:

<ul class="list-group mb-3 fit-width">
<li class="list-group-item"><b>--project: </b>the path to the folder that contains the project to generate the static site for.</li>
<li class="list-group-item"><b>--output: </b>the path to the output directory (write permissions needed).</li>
<li class="list-group-item"><b>Argument</b>the path to the folder that contains the project to generate the static site for.</li>
<li class="list-group-item"><b>-o|--output: </b>the path to the output directory (write permissions needed).</li>
<li class="list-group-item">
<b>--assembly: </b>the relative path to the assembly to use for the project. Defaults to /bin/Debug/net6.0/{projectName}.dll.
<br /> If given, the value must be a relative path to the project directory and point to the compiled .dll.
<b>-a|--assembly: </b>the path to the assembly to use for the project. Defaults to the Release or Debug build of the
target framework of the project, if found. <br /> If given, the value must point to the compiled .dll.
</li>
<li class="list-group-item"><b>--base-controller: </b>the name of the base controller to use for the project.</li>
<li class="list-group-item"><b>--route-template: </b> the default route template to use for the project.</li>
Expand All @@ -115,8 +115,7 @@
to <a href="https://www.netlify.com" target="_blank">Netlify <i class="bi-box-arrow-up-right"></i></a>:
</p>
<div class="bg-black px-2 text-white fit-width">
ssg --project ${GITHUB_WORKSPACE}/src/TerevintoSoftware.StaticSiteGenerator.Demo --output ${GITHUB_WORKSPACE}/out <br />
--route-casing KebabCase --use-localization true --assembly bin/Release/net6.0/TerevintoSoftware.StaticSiteGenerator.Demo.dll
ssg generate ./src/TerevintoSoftware.StaticSiteGenerator.Demo -o /out --route-casing KebabCase --use-localization true
</div>
</div>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0551d00

Please sign in to comment.