Skip to content

Commit df2f3f0

Browse files
committed
Update build.yml
1 parent bad3fcc commit df2f3f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ jobs:
4343
run: |
4444
Get-ChildItem dist
4545
46+
- name: Update HTML files to include './' in src/href attributes
47+
run: |
48+
Get-ChildItem dist\*.html | ForEach-Object {
49+
(Get-Content $_.FullName) -replace 'src="(/assets/)', 'src="./assets/' -replace 'href="(/assets/)', 'href="./assets/' | Set-Content $_.FullName
50+
}
51+
52+
- name: List updated HTML files
53+
run: |
54+
Get-ChildItem dist\*.html
55+
4656
- name: Clear Electron Builder Cache
4757
run: |
4858
if (Test-Path "$HOME\.cache\electron-builder") {

0 commit comments

Comments
 (0)