Skip to content

Commit b8ce371

Browse files
committed
add construction banner; add deploy workflow
1 parent 014926a commit b8ce371

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

Diff for: .github/workflows/publish-site.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
uses: JamesIves/[email protected]
33+
with:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
BRANCH: gh-pages
36+
FOLDER: bin/wwwroot

Diff for: LearnJsonEverything/Shared/Header.razor

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
json-everything
88
</a>
99
</div>
10+
<div class="align-items-center">
11+
<span style="color: amber;">⚠</span> This site is still under construction.
12+
</div>
1013
<div class="px-1">
1114
<a class="navbar-brand m-2" href="https://blog.json-everything.net">
1215
blog

0 commit comments

Comments
 (0)