mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 14:58:26 -04:00
[ci] add SHA-256 display and VirusTotal upload
This commit is contained in:
parent
9da4a49ab8
commit
94a2789296
4 changed files with 29 additions and 10 deletions
17
.github/workflows/mingw.yml
vendored
17
.github/workflows/mingw.yml
vendored
|
@ -60,12 +60,21 @@ jobs:
|
|||
run: |
|
||||
./configure --disable-debug
|
||||
make -j4
|
||||
mv src/rufus.exe .
|
||||
strip rufus.exe
|
||||
upx --lzma --best rufus.exe
|
||||
mv ./src/rufus.exe .
|
||||
strip ./rufus.exe
|
||||
upx --lzma --best ./rufus.exe
|
||||
|
||||
- name: Display SHA-256
|
||||
run: sha256sum ./rufus.exe
|
||||
|
||||
- name: Upload to VirusTotal
|
||||
if: ${{ matrix.env == 'i686' && github.event_name == 'push' }}
|
||||
run: |
|
||||
curl --request POST --url https://www.virustotal.com/vtapi/v2/file/scan --form apikey=${{secrets.VIRUSTOTAL_API_KEY}} --form file=@./rufus.exe
|
||||
curl --request POST --url https://www.virustotal.com/api/v3/monitor/items --header 'x-apikey: ${{secrets.VIRUSTOTAL_API_KEY}}' --form path='/rufus.exe' --form file=@./rufus.exe
|
||||
|
||||
- name: Upload artifacts
|
||||
if: ${{ matrix.env == 'i686' }}
|
||||
if: ${{ matrix.env == 'i686' && github.event_name == 'push' }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: MinGW
|
||||
|
|
10
.github/workflows/vs2019.yml
vendored
10
.github/workflows/vs2019.yml
vendored
|
@ -50,8 +50,18 @@ jobs:
|
|||
msbuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=Release,Platform=${{matrix.TARGET_PLATFORM}}
|
||||
move ./${{matrix.TARGET_PLATFORM}}/Release/rufus.exe ./rufus_${{matrix.TARGET_PLATFORM}}.exe
|
||||
|
||||
- name: Display SHA-256
|
||||
run: sha256sum ./rufus_${{matrix.TARGET_PLATFORM}}.exe
|
||||
|
||||
- name: Upload to VirusTotal
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: |
|
||||
curl --request POST --url https://www.virustotal.com/vtapi/v2/file/scan --form apikey=${{secrets.VIRUSTOTAL_API_KEY}} --form file=@./rufus_${{matrix.TARGET_PLATFORM}}.exe
|
||||
curl --request POST --url https://www.virustotal.com/api/v3/monitor/items --header 'x-apikey: ${{secrets.VIRUSTOTAL_API_KEY}}' --form path='/rufus_${{matrix.TARGET_PLATFORM}}.exe' --form file=@./rufus_${{matrix.TARGET_PLATFORM}}.exe
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
with:
|
||||
name: VS2019
|
||||
path: ./*.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue