File tree 2 files changed +39
-0
lines changed
LearnJsonEverything/Shared
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish learn.json-everything.net
2
+ on :
3
+ push :
4
+ branches :
5
+ - main # Default release branch
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ publish :
10
+ name : build, pack & publish
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : restore submodules
15
+ run : git submodule update --init
16
+ - name : Setup .NET Core
17
+ uses : actions/setup-dotnet@v2
18
+ with :
19
+ dotnet-version : 8.0.x
20
+ - name : Install dependencies
21
+ run : dotnet restore
22
+ - name : Pre-build solution
23
+ run : dotnet build LearnJsonEverything.sln -c Release --no-restore
24
+ - name : Build
25
+ run : dotnet publish LearnJsonEverything/LearnJsonEverything.csproj -c Release --no-restore -o bin
26
+ - name : Add .nojekyll file
27
+ run : touch bin/wwwroot/.nojekyll
28
+ - name : Copy index.html files
29
+ run : |
30
+ mkdir bin/wwwroot/json-schema/ && cp bin/wwwroot/index.html bin/wwwroot/json-schema/
31
+ - name : Publish
32
+
33
+ with :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ BRANCH : gh-pages
36
+ FOLDER : bin/wwwroot
Original file line number Diff line number Diff line change 7
7
json-everything
8
8
</a >
9
9
</div >
10
+ <div class =" align-items-center" >
11
+ <span style =" color : amber;" >⚠</span > This site is still under construction.
12
+ </div >
10
13
<div class =" px-1" >
11
14
<a class =" navbar-brand m-2" href =" https://blog.json-everything.net" >
12
15
blog
You can’t perform that action at this time.
0 commit comments