aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-02 13:08:56 +0300
committerheqnx <root@heqnx.com>2025-05-02 13:08:56 +0300
commit410cdb37a0a188dd9433a69f3bf94365f7ec8815 (patch)
tree4685f1908d63015f63124aa64eee499ab2694d06
parent769db61e21ff9a1456d9b695375e0b5f1c0d9d36 (diff)
downloadSharpAMSIGhosting-410cdb37a0a188dd9433a69f3bf94365f7ec8815.tar.gz
SharpAMSIGhosting-410cdb37a0a188dd9433a69f3bf94365f7ec8815.zip
added workflow file
-rw-r--r--.github/workflow/build-release.yaml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflow/build-release.yaml b/.github/workflow/build-release.yaml
new file mode 100644
index 0000000..1f5c128
--- /dev/null
+++ b/.github/workflow/build-release.yaml
@@ -0,0 +1,55 @@
+name: Build and Release SharpAMSIGhosting
+
+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 SharpAMSIGhosting.sln
+
+ - name: Build solution (AnyCPU)
+ run: msbuild SharpAMSIGhosting.sln /p:Configuration=Release /p:Platform="Any CPU"
+
+ - name: Build solution (x64)
+ run: msbuild SharpAMSIGhosting.sln /p:Configuration=Release /p:Platform=x64
+
+ - name: Build solution (x86)
+ run: msbuild SharpAMSIGhosting.sln /p:Configuration=Release /p:Platform=x86
+
+ - name: Collect binaries
+ run: |
+ mkdir build
+ Copy-Item -Path "SharpAMSIGhosting\bin\Release\SharpAMSIGhosting.exe" -Destination "build\SharpAMSIGhosting-AnyCPU.exe"
+ Copy-Item -Path "SharpAMSIGhosting\bin\x64\Release\SharpAMSIGhosting.exe" -Destination "build\SharpAMSIGhosting-x64.exe"
+ Copy-Item -Path "SharpAMSIGhosting\bin\x86\Release\SharpAMSIGhosting.exe" -Destination "build\SharpAMSIGhosting-x86.exe"
+
+ - name: Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: build/*
+ draft: false
+ prerelease: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}