Skip to content

Commit

Permalink
Update web.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linkoid authored Sep 3, 2024
1 parent adbbce3 commit 849780f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
- name: Publish YetAnother.Web
run: dotnet publish YetAnother.Web/YetAnother.Web.csproj -c Release -o _site --nologo
# base href url value should be changed so that resources like CSS and scripts can load properly.
#- name: Rewrite Base Href
# if: success()
# uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
# with:
# html_path: _site/wwwroot/index.html
# base_href: ${{ github.event.repository.name }}
- name: Rewrite Base Href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
with:
html_path: _site/wwwroot/index.html
base_href: ${{ github.event.repository.name }}
# This fixes bug that prevents direct navigation to subdirectories
- name: Redirect 404 to index.html
run: cp _site/wwwroot/index.html _site/wwwroot/404.html
# Allow files and folders starting with an underscore.
- name: Add .nojekyll File
run: touch _site/wwwroot/.nojekyll
Expand Down

0 comments on commit 849780f

Please sign in to comment.