Update main.yml
This commit is contained in:
parent
3288f9878c
commit
52c2d5cb8d
|
@ -19,6 +19,13 @@ jobs:
|
|||
uses: actions/checkout@main
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout private donut
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: qwqdanchun/donut-self
|
||||
token: ${{ secrets.PERSONAL_TOKEN }}
|
||||
path: donut
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
@ -29,13 +36,9 @@ jobs:
|
|||
- name: Build solution
|
||||
run: msbuild -nologo -v:m -p:Configuration=${{ matrix.configuration }} Pillager.sln
|
||||
|
||||
- name: Install 7Zip PowerShell Module
|
||||
- name: Build Shellcode
|
||||
shell: powershell
|
||||
run: Install-Module 7Zip4PowerShell -Force -Verbose
|
||||
|
||||
- name: Build Artifact
|
||||
shell: powershell
|
||||
run: Compress-7Zip "Pillager\bin\Release" -ArchiveFileName "Pillager.zip" -Format Zip
|
||||
run: .\donut\donut.exe -i .\Pillager\bin\Release\Pillager.exe -o .\Pillager.bin
|
||||
|
||||
- name: Delete-tag-and-release
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||
|
@ -57,13 +60,24 @@ jobs:
|
|||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
- name: Upload Release Exe
|
||||
id: upload-release-exe
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./Pillager.zip
|
||||
asset_name: Pillager.zip
|
||||
asset_content_type: application/zip
|
||||
asset_path: ./Pillager/bin/Release/Pillager.exe
|
||||
asset_name: Pillager.exe
|
||||
asset_content_type: application/exe
|
||||
|
||||
- name: Upload Release Bin
|
||||
id: upload-release-bin
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./Pillager.bin
|
||||
asset_name: Pillager.bin
|
||||
asset_content_type: application/octet-stream
|
||||
|
|
Loading…
Reference in New Issue