File tree Expand file tree Collapse file tree 7 files changed +578
-839
lines changed
Expand file tree Collapse file tree 7 files changed +578
-839
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
33on :
44 push :
55 tags :
6- - ' v*' # This workflow triggers when you push a tag that starts with "v"
6+ - ' v*'
77
88jobs :
99 build :
@@ -19,15 +19,35 @@ jobs:
1919 - name : Build Release
2020 run : cargo build --profile release-lto
2121
22+ - name : Ensure Additional Files Exist
23+ run : |
24+ if (!(Test-Path target\release\WinRing0x64.sys)) {
25+ throw "WinRing0x64.sys not found!"
26+ }
27+ if (!(Test-Path target\release\WinRing0x64.dll)) {
28+ throw "WinRing0x64.dll not found!"
29+ }
30+
31+ - name : Create Release Zip
32+ shell : pwsh
33+ run : |
34+ $files = @(
35+ 'target\release\oc_tool.exe',
36+ 'target\release\WinRing0x64.sys',
37+ 'target\release\WinRing0x64.dll'
38+ )
39+ Compress-Archive -Path $files -DestinationPath oc_tool.zip -Force
40+
2241 - name : Upload artifact
2342 uses : actions/upload-artifact@v4
2443 with :
2544 name : oc-tool
26- path : target/release/ oc_tool.exe
45+ path : oc_tool.zip
2746
2847 release :
2948 needs : build
3049 runs-on : ubuntu-latest
50+
3151 steps :
3252 - name : Download artifact
3353 uses : actions/download-artifact@v4
3757 - name : Create GitHub Release
3858 uses : softprops/action-gh-release@v2
3959 with :
40- files : oc_tool.exe
60+ files : oc_tool.zip
4161 env :
4262 GITHUB_TOKEN : ${{ secrets.FINE_GRAINED_TOKEN }}
Original file line number Diff line number Diff line change 11/target
2+ /WinRing0_1_3_0
You can’t perform that action at this time.
0 commit comments