Skip to content

Refactoring.

Refactoring. #17

Workflow file for this run

name: Release
on:
push:
tags: v*
jobs:
publish:
name: Publish
runs-on: windows-latest
permissions:
contents: write
env:
MAVEN_OPTS: -Dhttp.keepAlive=false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- run: mvn clean verify -B -V -e -ntp
- uses: ncipollo/release-action@v1
with:
artifacts: target/*.exe, target/*.tar.gz, target/*.zip
bodyFile: target/checksums.md
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
generateReleaseNotes: true
- run: >-
FOR /R target %%G IN (*.exe *.tar.gz *.zip) DO IF NOT %%~xG == .exec ECHO Submitting file %%G to VirusTotal... & ping -n 16 -l 0 localhost & curl -v -H "accept: application/json" -H "content-type: multipart/form-data" -H "x-apikey: ${{ secrets.VT_API_KEY }}" -F "file=@%%G" https://www.virustotal.com/api/v3/files & ECHO; & ECHO File %%G submitted to VirusTotal.
shell: cmd