Skip to content

Commit 144daf8

Browse files
committed
Merge branch 'dev'
2 parents 8547a0b + 62cb3cc commit 144daf8

File tree

7 files changed

+72
-2
lines changed

7 files changed

+72
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Use GitHub Actions to automate the deployment of your blog site.
107107
Create a `build.yml` file in the root directory of the repository, under the `.github/workflows` directory (if it doesn't exist, create it manually). The content should be as follows:
108108

109109
```yml
110-
name: Deploy static content to Pages
110+
name: Deploy static content to Pages
111111
on:
112112
push:
113113
branches: ["main"]
@@ -134,6 +134,14 @@ jobs:
134134
- name: Setup Pages
135135
uses: actions/configure-pages@v4
136136

137+
- name: Dotnet Setup
138+
uses: actions/setup-dotnet@v3
139+
with:
140+
dotnet-version: 8.x
141+
142+
- run: dotnet tool install -g Ater.EasyBlog --version 1.0.0-beta1
143+
- run: ezblog build ./Content ./_site
144+
137145
- name: Upload artifact
138146
uses: actions/upload-pages-artifact@v3
139147
with:

README_cn.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ jobs:
137137
- name: Setup Pages
138138
uses: actions/configure-pages@v4
139139

140+
- name: Dotnet Setup
141+
uses: actions/setup-dotnet@v3
142+
with:
143+
dotnet-version: 8.x
144+
145+
- run: dotnet tool install -g Ater.EasyBlog --version 1.0.0-beta1
146+
- run: ezblog build ./Content ./_site
147+
140148
- name: Upload artifact
141149
uses: actions/upload-pages-artifact@v3
142150
with:

src/BuildSite/webinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"Name": "Ater Blog",
33
"Description": "My Blog - Powered by Ater Blog",
44
"AuthorName": "Ater",
5-
"BaseHref": "/",
5+
"BaseHref": "/EasyBlog/",
66
"Domain": null
77
}

src/NodePackage/NodePackage.csproj

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<OutDir>bin</OutDir>
7+
<NodeApiAssemblyJSModuleType>esm</NodeApiAssemblyJSModuleType>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.7.34" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\BuildSite\BuildSite.csproj" />
16+
</ItemGroup>
17+
</Project>

src/NodePackage/NodePackage.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NodePackage", "NodePackage.csproj", "{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {226C8589-FEB8-4E53-A720-8376D02F6A5B}
24+
EndGlobalSection
25+
EndGlobal

src/NodePackage/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env node

src/NodePackage/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "ater.ezblog",
3+
"version": "0.1.0",
4+
"description": "Generates a pure static blog website from a markdown document through commands",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "NilTor",
10+
"license": "MIT"
11+
}

0 commit comments

Comments
 (0)