Skip to content

Commit

Permalink
fixed deployment action
Browse files Browse the repository at this point in the history
needing to commit _before_ testing the changes is rather annoying. fortunately, once i get this right, it should be easy to reuse for other projects.
  • Loading branch information
connectuum committed Dec 22, 2021
1 parent 0742846 commit 7a984f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:

# publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: dotnet publish Poemdown.Blaze.csproj -c Release -o release --nologo
run: dotnet publish solution/Poemdown.Blaze/Poemdown.Blaze.csproj -c Release -o release --nologo

# changes the base-tag in index.html to match GitHub Pages repository subdirectory
- name: Change base-tag in index.html from / to /poemdown/
run: sed -i 's/<base href="\/" \/>/<base href="\/poemdown\/" \/>/g' release/wwwroot/index.html
run: sed -i 's/<base href="\/"\/>/<base href="\/poemdown\/"\/>/g' release/wwwroot/index.html

# copy index.html to 404.html to serve the same file when a file is not found
- name: copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html

# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll

Expand Down

0 comments on commit 7a984f3

Please sign in to comment.