Skip to content

Commit 777f8a5

Browse files
v0.1.3a
1 parent 6118ca5 commit 777f8a5

File tree

7 files changed

+578
-839
lines changed

7 files changed

+578
-839
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*' # This workflow triggers when you push a tag that starts with "v"
6+
- 'v*'
77

88
jobs:
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
@@ -37,6 +57,6 @@ jobs:
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 }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/WinRing0_1_3_0

0 commit comments

Comments
 (0)