File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : windows-build
2+ on :
3+ push :
4+ tags :
5+ - ' v*' # 只有推送 tag 时才触发,适合发
6+
7+ jobs :
8+ build :
9+
10+ runs-on : windows-latest
11+ permissions :
12+ contents : write
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : install qt
18+ uses : jurplel/install-qt-action@v4
19+ with :
20+ version : ' 6.9.1'
21+ host : ' windows'
22+ target : ' desktop'
23+ arch : ' win64_msvc2022_64'
24+ cache : " true"
25+ modules : ' qthttpserver qtwebengine qtpdf qtwebsockets'
26+ - name : build with cmake
27+ run : |
28+ cmake --preset win-rel
29+ cmake --build build
30+ - name : deploy qt-runtime
31+ run : |
32+ set "QT_BIN_PATH=%Qt5_DIR%\bin"
33+ "%QT_BIN_PATH%\windeployqt.exe" --release build\src\WebpagePrinterTool.exe
34+ shell : cmd
35+
36+ - name : download helper
37+ run : |
38+ powershell Invoke-WebRequest -Uri https://github.com/zerlei/WebpagePrinterHelper/releases/download/v1.0.0/dist.zip -OutFile ./dist.zip
39+ powershell Expand-Archive -Path ./dist.zip -DestinationPath ./build/src
40+ powershell Remove-Item -Path ./build/src/dist -NewName "wwwroot"
41+
42+ - name : Package artifact
43+ run : |
44+ powershell Compress-Archive -Path build\src\* -DestinationPath ./WebpagePrinterTool-win-x64.zip
45+
46+ - name : Create GitHub Release
47+ uses : softprops/action-gh-release@v2
48+ with :
49+ files : WebpagePrinterTool-win-x64.zip
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+
You can’t perform that action at this time.
0 commit comments