Kevin-Robertson / InveighZero

.NET IPv4/IPv6 machine-in-the-middle tool for penetration testers
BSD 3-Clause "New" or "Revised" License
786 stars 119 forks source link

Github Actions Build #2

Open InitRoot opened 3 years ago

InitRoot commented 3 years ago

Working Git Actions build available on my fork. Possible build code that can be used:

name: Build Inveigh

on: [push]

jobs:
  build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v1
      name: Checkout Code

    - name: Setup MSBuild Path
      uses:  warrenbuckley/Setup-MSBuild@v1

    - name: Setup NuGet
      uses: NuGet/setup-nuget@v1.0.2

    - name: Restore NuGet Packages
      run: nuget restore Inveigh.sln

    - name: Build App
      run: msbuild Inveigh.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile

    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: Inveigh
        path: "D:/a/InveighZero/InveighZero/Inveigh/obj/Debug/"
mubix commented 3 years ago

If you are building release, wouldn't it be in the Inveigh/Release folder rather than Debug upon successful build?

InitRoot commented 3 years ago

Yep, this just an example, feel free to change.