diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa495e88..57db4ad0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,5 @@ -name: Build -on: [pull_request, push] +name: Build Pull Request Artifacts +on: [pull_request] jobs: build: runs-on: windows-2022 @@ -26,13 +26,13 @@ jobs: run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x64.7z al-khaser_x64.exe - name: Upload x86 Binaries - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: x86 path: "al-khaser_x86.7z" - name: Upload x64 Binaries - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: x64 path: "al-khaser_x64.7z" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..59a08d93 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Build Release Artifacts +on: + release: + types: [published] +jobs: + build: + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v2 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.1.3 + + - name: Restore NuGet packages + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build x86 + run: msbuild /m /p:Platform=x86 /p:Configuration=Release al-khaser.sln + + - name: Build x64 + run: msbuild /m /p:Platform=x64 /p:Configuration=Release al-khaser.sln + + - name: Zip x86 Binaries + run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x86.7z al-khaser_x86.exe + + - name: Zip x64 Binaries + run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x64.7z al-khaser_x64.exe + + - name: Attach Binaries to release + uses: AButler/upload-release-assets@v3.0 + with: + files: "al-khaser_x*.7z" + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 02ce4bcc..a84d7391 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,7 @@ It performs a bunch of common malware tricks with the goal of seeing if you stay ## Download -~~You can download the latest release here: [x86](https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser_x86.exe?raw=true) | [x64](https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser_x64.exe?raw=true).~~ - -**Sorry, binaries have been removed for now as they were triggering Google's Safe Browsing heuristics.** +You can download built binaries (x86, x64) from this project's [releases page](https://github.com/LordNoteworthy/al-khaser/releases). The password for the 7zs can be found [here](https://github.com/LordNoteworthy/al-khaser/blob/master/.github/workflows/release.yml#L25). ## Possible uses diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 82efa8c6..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,2 +0,0 @@ -image: -- Visual Studio 2017 \ No newline at end of file