Skip to content

Commit 6a55e16

Browse files
author
Alex J Lennon
committed
🔧 Force redeploy with correct base href
The deployed site shows base href='/csharp-examples/' instead of '/OCR-CSharp-Tutorial/' This commit triggers a new deployment with the correct configuration.
1 parent 5990482 commit 6a55e16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Deploy to GitHub Pages
2+
# Force redeploy with correct base href
23

34
on:
45
push:
@@ -20,8 +21,8 @@ jobs:
2021
- name: Publish .NET Core Project
2122
run: dotnet publish src/web-tutorial/CSharpTutorial/CSharpTutorial.csproj -c Release -o release --nologo
2223

23-
- name: Change base-tag in index.html from / to csharp-examples
24-
run: sed -i 's/<base href="\/" \/>/<base href="\/csharp-examples\/" \/>/g' release/wwwroot/index.html
24+
- name: Change base-tag in index.html from / to OCR-CSharp-Tutorial
25+
run: sed -i 's/<base href="\/" \/>/<base href="\/OCR-CSharp-Tutorial\/" \/>/g' release/wwwroot/index.html
2526

2627
- name: copy index.html to 404.html
2728
run: cp release/wwwroot/index.html release/wwwroot/404.html

0 commit comments

Comments
 (0)