File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
permissions :
16
16
contents : write
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
20
20
- name : Remove launchSettings.json (to not override ASPNETCORE_ENVIRONMENT)
21
21
run : rm ${{ env.WEBAPP_PATH }}Properties/launchSettings.json
@@ -27,14 +27,14 @@ jobs:
27
27
cd ${{ env.WEBAPP_PATH }}
28
28
tailwindcss --input ./wwwroot/app.css --output ./wwwroot/app.min.css --minify
29
29
30
- - name : Change <base href="" /> in App.razor to match gh repo name
30
+ - name : Change <base href="" /> in App.razor to match GitHub repo name
31
31
run : |
32
32
REPO_NAME=$(echo "${{ github.repository }}" | awk -F '/' '{print $NF}')
33
- USER_NAME=$(echo "${{ github.repository_owner }}")
34
- if [ "$REPO_NAME" != "$USER_NAME.github.io" ]; then
35
- sed -i 's/<base href="\/" \/>/<base href="\/'$REPO_NAME'\/" \/>/g' ${{ env.WEBAPP_PATH }}Components/App.razor
33
+ if [[ "$REPO_NAME" != *.github.io ]]; then
34
+ sed -i 's|<base href="/" />|<base href="/'$REPO_NAME'/" />|g' ${{ env.WEBAPP_PATH }}/Components/App.razor
36
35
fi
37
36
37
+
38
38
- run : touch ${{ env.WEBAPP_PATH }}/wwwroot/.nojekyll # folder starting with _ are handled as jekyll. This file will prevent that.
39
39
- name : Run webapp and generate static files
40
40
run : |
You can’t perform that action at this time.
0 commit comments