Skip to content

Commit 5452a1d

Browse files
committed
Update deployment workflow
1 parent 82b611d commit 5452a1d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,32 @@ jobs:
1616
with:
1717
dotnet-version: 8.0.x
1818

19+
# Korrigierte Pfade
1920
- name: Restore dependencies
20-
run: dotnet restore LagerClient.Blazor/LagerClient.Blazor.sln
21+
run: dotnet restore LagerClient.Blazor.sln
2122

2223
- name: Build
23-
run: dotnet build LagerClient.Blazor/LagerClient.Blazor.sln --no-restore --configuration Release
24+
run: dotnet build LagerClient.Blazor.sln --no-restore --configuration Release
2425

2526
- name: Publish
26-
run: dotnet publish LagerClient.Blazor/Client/Client.csproj -c Release -o release --nologo
27+
run: dotnet publish Client/Client.csproj -c Release -o release --nologo
2728

28-
# Füge .nojekyll-Datei hinzu, um Jekyll-Verarbeitung zu deaktivieren
29+
# Die folgenden Schritte bleiben gleich
2930
- name: Add .nojekyll file
3031
run: touch release/wwwroot/.nojekyll
3132

32-
# Ändere die base-href für GitHub Pages
3333
- name: Change base-href in index.html
3434
run: sed -i 's/<base href="\/" \/>/<base href="\/LagerClientBlazor\/" \/>/g' release/wwwroot/index.html
3535

36-
# Kopiere index.html zu 404.html, damit Routing funktioniert
3736
- name: Copy index.html to 404.html
3837
run: cp release/wwwroot/index.html release/wwwroot/404.html
3938

40-
# Kopiere die generierten Dateien in den docs-Ordner
4139
- name: Prepare docs directory
4240
run: |
4341
rm -rf docs
4442
mkdir -p docs
4543
cp -r release/wwwroot/* docs/
4644
47-
# Commit und Push der Änderungen
4845
- name: Commit and push changes
4946
run: |
5047
git config --local user.email "action@github.com"

0 commit comments

Comments
 (0)