Installer "/noUpdater" #685
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI_build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install hugo extended and httrack via chocolatey | |
working-directory: . | |
run: | | |
choco install hugo-extended --version 0.57.2 | |
choco install httrack | |
- name: Retrieve data from server | |
working-directory: . | |
run: | | |
cmd /c start hugo.exe server --theme book | |
$env:Path += ";C:\Program Files\WinHTTrack\" | |
httrack.exe "http://127.0.0.1:1313/" -O "./httrack_output" | |
Set-Location -Path httrack_output | |
Rename-Item -Path 127.0.0.1_1313 -NewName nppUserManual | |
Get-ChildItem -Recurse "./nppUserManual" -Filter index.html | Foreach-Object { | |
$orgname = $_.FullName | |
$tmpname = "$($orgname).unedited" | |
echo $tmpname | |
Copy-Item $orgname $tmpname | |
get-content $tmpname | | |
%{$_ -replace 'id="book-search-input" maxlength="64" readonly','id="book-search-input" maxlength="64" readonly hidden'} | | |
%{$_ -replace 'href="http://localhost:1313/"','href="./index.html"'} | | |
%{$_ -replace 'href="http://localhost:1313/','href="'} | | |
set-content $orgname | |
Remove-Item $tmpname | |
} | |
- name: Archive artifacts for hugo | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nppUserManual | |
path: ./httrack_output/nppUserManual/ | |