aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-04-25 13:39:58 +0300
committerheqnx <root@heqnx.com>2025-04-25 13:39:58 +0300
commit8257b544588a7a1d37698f2d2efb885967c8d313 (patch)
tree836171f93719f85b50eebca441211693e0441557 /.github
parent47d070f274393a9ce87657d82dc8cbcb79dda5a8 (diff)
downloadSharpRIDHijack-8257b544588a7a1d37698f2d2efb885967c8d313.tar.gz
SharpRIDHijack-8257b544588a7a1d37698f2d2efb885967c8d313.zip
initial commit
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-release.yaml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml
new file mode 100644
index 0000000..40b22ef
--- /dev/null
+++ b/.github/workflows/build-release.yaml
@@ -0,0 +1,55 @@
+name: Build and Release SharpRIDHijack
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+permissions:
+ contents: write
+
+jobs:
+ build-and-release:
+ runs-on: windows-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Setup MSBuild
+ uses: microsoft/setup-msbuild@v2
+ with:
+ msbuild-version: '17.0'
+
+ - name: Setup NuGet
+ uses: nuget/setup-nuget@v2
+
+ - name: Restore NuGet packages
+ run: nuget restore SharpRIDHijack.sln
+
+ - name: Build solution (AnyCPU)
+ run: msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform="Any CPU"
+
+ - name: Build solution (x64)
+ run: msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform=x64
+
+ - name: Build solution (x86)
+ run: msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform=x86
+
+ - name: Collect binaries
+ run: |
+ mkdir build
+ Copy-Item -Path "SharpRIDHijack\bin\Release\SharpRIDHijack.exe" -Destination "build\SharpRIDHijack-AnyCPU.exe"
+ Copy-Item -Path "SharpRIDHijack\bin\x64\Release\SharpRIDHijack.exe" -Destination "build\SharpRIDHijack-x64.exe"
+ Copy-Item -Path "SharpRIDHijack\bin\x86\Release\SharpRIDHijack.exe" -Destination "build\SharpRIDHijack-x86.exe"
+
+ - name: Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: build/*
+ draft: false
+ prerelease: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}